commit | 1f9a8354002dbb29f38bfbd4273ce62e40ac80ba | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Mar 11 19:29:12 2012 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Mar 11 19:29:12 2012 +0100 |
tree | eaaaf85cefe62ad490202984e2a0dd2a425eabe7 | |
parent | 328dd0d5f3d20c01d85675f6e5d1001dd2a04480 [diff] |
Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.
diff --git a/PC/_subprocess.c b/PC/_subprocess.c index 2338f30..f9a79a7 100644 --- a/PC/_subprocess.c +++ b/PC/_subprocess.c
@@ -684,6 +684,7 @@ defint(d, "WAIT_OBJECT_0", WAIT_OBJECT_0); defint(d, "CREATE_NEW_CONSOLE", CREATE_NEW_CONSOLE); defint(d, "CREATE_NEW_PROCESS_GROUP", CREATE_NEW_PROCESS_GROUP); + defint(d, "STILL_ACTIVE", STILL_ACTIVE); return m; }