From: Guido van Rossum Date: Wed, 19 Jun 1996 23:17:02 +0000 (+0000) Subject: Clear waitpid() status arg in case there's no process to report with X-Git-Tag: v1.4b1~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd03e2b4b1196b8ad2985ecc69947c044d6e27c6;p=python Clear waitpid() status arg in case there's no process to report with WNOHANG set. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a4268dd9c5..9f0358e8c9 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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