mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Make waitpid(2) fail on signal arrival.
This commit is contained in:
parent
da7f10269d
commit
66487f2895
1 changed files with 2 additions and 1 deletions
|
@ -357,8 +357,9 @@ namespace Sortix
|
|||
if ( options & WNOHANG )
|
||||
return 0;
|
||||
zombiewaiting++;
|
||||
kthread_cond_wait(&zombiecond, &childlock);
|
||||
unsigned long r = kthread_cond_wait_signal(&zombiecond, &childlock);
|
||||
zombiewaiting--;
|
||||
if ( !r ) { Error::Set(EINTR); return -1; }
|
||||
}
|
||||
|
||||
if ( zombie->prevsibling )
|
||||
|
|
Loading…
Add table
Reference in a new issue