Clear waitpid() status arg in case there's no process to report with
WNOHANG set.
This commit is contained in:
parent
3b4da59cd6
commit
fd03e2b4b1
@ -1122,7 +1122,7 @@ posix_waitpid(self, args)
|
||||
object *self;
|
||||
object *args;
|
||||
{
|
||||
int pid, options, sts;
|
||||
int pid, options, sts = 0;
|
||||
if (!getargs(args, "(ii)", &pid, &options))
|
||||
return NULL;
|
||||
BGN_SAVE
|
||||
|
Loading…
x
Reference in New Issue
Block a user