Make waitpid(2) fail on signal arrival.
This commit is contained in:
parent
da7f10269d
commit
66487f2895
|
@ -357,8 +357,9 @@ namespace Sortix
|
||||||
if ( options & WNOHANG )
|
if ( options & WNOHANG )
|
||||||
return 0;
|
return 0;
|
||||||
zombiewaiting++;
|
zombiewaiting++;
|
||||||
kthread_cond_wait(&zombiecond, &childlock);
|
unsigned long r = kthread_cond_wait_signal(&zombiecond, &childlock);
|
||||||
zombiewaiting--;
|
zombiewaiting--;
|
||||||
|
if ( !r ) { Error::Set(EINTR); return -1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( zombie->prevsibling )
|
if ( zombie->prevsibling )
|
||||||
|
|
Loading…
Reference in New Issue