Clear waitpid() status arg in case there's no process to report with

WNOHANG set.
This commit is contained in:
Guido van Rossum 1996-06-19 23:17:02 +00:00
parent 3b4da59cd6
commit fd03e2b4b1

View File

@ -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