mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +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 *self;
|
||||||
object *args;
|
object *args;
|
||||||
{
|
{
|
||||||
int pid, options, sts;
|
int pid, options, sts = 0;
|
||||||
if (!getargs(args, "(ii)", &pid, &options))
|
if (!getargs(args, "(ii)", &pid, &options))
|
||||||
return NULL;
|
return NULL;
|
||||||
BGN_SAVE
|
BGN_SAVE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue