summaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-11 19:29:12 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-11 19:29:12 +0100
commit1f9a8354002dbb29f38bfbd4273ce62e40ac80ba (patch)
treeeaaaf85cefe62ad490202984e2a0dd2a425eabe7 /PC
parent328dd0d5f3d20c01d85675f6e5d1001dd2a04480 (diff)
downloadcpython-git-1f9a8354002dbb29f38bfbd4273ce62e40ac80ba.tar.gz
Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.
Diffstat (limited to 'PC')
-rw-r--r--PC/_subprocess.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/PC/_subprocess.c b/PC/_subprocess.c
index 2338f3085b..f9a79a7300 100644
--- a/PC/_subprocess.c
+++ b/PC/_subprocess.c
@@ -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;
}