libposix: fix bind #p and POSIX_kill sigrtmin/sigrtmax usage

This commit is contained in:
Giacomo Tesio 2017-05-29 01:11:07 +02:00
parent fe168aa55d
commit f6d44667f2
2 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@ release_inherited_resources(void)
{
notify(nil);
rfork(RFCNAMEG|RFCENVG|RFNOTEG|RFCFDG);
bind("#P", "/proc", MREPL);
bind("#p", "/proc", MREPL);
rfork(RFNOMNT);
}
@ -138,6 +138,7 @@ fork_with_sigchld(int *errnop)
case 0:
/* C2P here:
* - create child
* - wait for it to get a copy of everything
* - release all inherited resources
* - install forwarding_note_handler
* - send to P2C the child pid

View File

@ -335,6 +335,7 @@ POSIX_kill(int *errnop, int pid, int sig)
signal = __code_to_signal_map[sig];
if(signal == 0
&&(__sigrtmin != 0 && __sigrtmax != 0)
&&(sig < __sigrtmin || sig > __sigrtmax))
sysfatal("libposix: undefined signal %d", sig);
if(pid == getpid())