diff options
author | Guido van Rossum <guido@python.org> | 1996-06-19 23:17:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-06-19 23:17:02 (GMT) |
commit | fd03e2b4b1196b8ad2985ecc69947c044d6e27c6 (patch) | |
tree | 73c77fe86a9636a36b3457b3cf5aea4fc43b609e | |
parent | 3b4da59cd6dde2e375391bc8b41a469a4aab5fbd (diff) | |
download | cpython-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.
-rw-r--r-- | Modules/posixmodule.c | 2 |
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 |