commit | fd03e2b4b1196b8ad2985ecc69947c044d6e27c6 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jun 19 23:17:02 1996 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jun 19 23:17:02 1996 +0000 |
tree | 73c77fe86a9636a36b3457b3cf5aea4fc43b609e | |
parent | 3b4da59cd6dde2e375391bc8b41a469a4aab5fbd [diff] |
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 a4268dd..9f0358e 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -1122,7 +1122,7 @@ object *self; object *args; { - int pid, options, sts; + int pid, options, sts = 0; if (!getargs(args, "(ii)", &pid, &options)) return NULL; BGN_SAVE