Commit fd03e2b4 authored by Guido van Rossum's avatar Guido van Rossum

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

WNOHANG set.
parent 3b4da59c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment