Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd03e2b

Browse files
committed
Clear waitpid() status arg in case there's no process to report with
WNOHANG set.
1 parent 3b4da59 commit fd03e2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ posix_waitpid(self, args)
11221122
object *self;
11231123
object *args;
11241124
{
1125-
int pid, options, sts;
1125+
int pid, options, sts = 0;
11261126
if (!getargs(args, "(ii)", &pid, &options))
11271127
return NULL;
11281128
BGN_SAVE

0 commit comments

Comments
 (0)