]> granicus.if.org Git - python/commitdiff
Clear waitpid() status arg in case there's no process to report with
authorGuido van Rossum <guido@python.org>
Wed, 19 Jun 1996 23:17:02 +0000 (23:17 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 19 Jun 1996 23:17:02 +0000 (23:17 +0000)
WNOHANG set.

Modules/posixmodule.c

index a4268dd9c50a235b9a43fb0c89ae9bf53b4774b8..9f0358e8c9954d4e78e3fd23ef68867a146b7239 100644 (file)
@@ -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