Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.

This commit is contained in:
Antoine Pitrou 2012-03-11 19:29:12 +01:00
parent 328dd0d5f3
commit 1f9a835400
4 changed files with 82 additions and 1 deletions

View file

@ -684,6 +684,7 @@ PyInit__subprocess()
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;
}