mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Clear waitpid() status arg in case there's no process to report with
WNOHANG set.
This commit is contained in:
parent
3b4da59cd6
commit
fd03e2b4b1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue