From fd03e2b4b1196b8ad2985ecc69947c044d6e27c6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 19 Jun 1996 23:17:02 +0000 Subject: Clear waitpid() status arg in case there's no process to report with WNOHANG set. --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a4268dd..9f0358e 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 -- cgit v0.12