summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-19 23:17:02 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-19 23:17:02 (GMT)
commitfd03e2b4b1196b8ad2985ecc69947c044d6e27c6 (patch)
tree73c77fe86a9636a36b3457b3cf5aea4fc43b609e /Modules/posixmodule.c
parent3b4da59cd6dde2e375391bc8b41a469a4aab5fbd (diff)
downloadcpython-fd03e2b4b1196b8ad2985ecc69947c044d6e27c6.zip
cpython-fd03e2b4b1196b8ad2985ecc69947c044d6e27c6.tar.gz
cpython-fd03e2b4b1196b8ad2985ecc69947c044d6e27c6.tar.bz2
Clear waitpid() status arg in case there's no process to report with
WNOHANG set.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
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