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:33:29 +01:00
commit b69ef16fe6
4 changed files with 80 additions and 1 deletions

View file

@ -691,6 +691,7 @@ PyInit__subprocess()
defint(d, "WAIT_TIMEOUT", WAIT_TIMEOUT);
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;
}