libposix: fix bind #p and POSIX_kill sigrtmin/sigrtmax usage
This commit is contained in:
parent
fe168aa55d
commit
f6d44667f2
@ -37,7 +37,7 @@ release_inherited_resources(void)
|
|||||||
{
|
{
|
||||||
notify(nil);
|
notify(nil);
|
||||||
rfork(RFCNAMEG|RFCENVG|RFNOTEG|RFCFDG);
|
rfork(RFCNAMEG|RFCENVG|RFNOTEG|RFCFDG);
|
||||||
bind("#P", "/proc", MREPL);
|
bind("#p", "/proc", MREPL);
|
||||||
rfork(RFNOMNT);
|
rfork(RFNOMNT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,6 +138,7 @@ fork_with_sigchld(int *errnop)
|
|||||||
case 0:
|
case 0:
|
||||||
/* C2P here:
|
/* C2P here:
|
||||||
* - create child
|
* - create child
|
||||||
|
* - wait for it to get a copy of everything
|
||||||
* - release all inherited resources
|
* - release all inherited resources
|
||||||
* - install forwarding_note_handler
|
* - install forwarding_note_handler
|
||||||
* - send to P2C the child pid
|
* - send to P2C the child pid
|
||||||
|
@ -335,6 +335,7 @@ POSIX_kill(int *errnop, int pid, int sig)
|
|||||||
|
|
||||||
signal = __code_to_signal_map[sig];
|
signal = __code_to_signal_map[sig];
|
||||||
if(signal == 0
|
if(signal == 0
|
||||||
|
&&(__sigrtmin != 0 && __sigrtmax != 0)
|
||||||
&&(sig < __sigrtmin || sig > __sigrtmax))
|
&&(sig < __sigrtmin || sig > __sigrtmax))
|
||||||
sysfatal("libposix: undefined signal %d", sig);
|
sysfatal("libposix: undefined signal %d", sig);
|
||||||
if(pid == getpid())
|
if(pid == getpid())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user