summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-04-12 17:16:38 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-04-12 17:16:38 (GMT)
commiteb24d7498f3e34586fee24209f5630a58bb1a04b (patch)
tree2618500362c3b75e9ff541971954b57d14d66a86 /Lib/subprocess.py
parentb2416e54b15d90b4a1bc917897912061830b42fc (diff)
downloadcpython-eb24d7498f3e34586fee24209f5630a58bb1a04b.zip
cpython-eb24d7498f3e34586fee24209f5630a58bb1a04b.tar.gz
cpython-eb24d7498f3e34586fee24209f5630a58bb1a04b.tar.bz2
Port #1220212 (os.kill for Win32) to py3k.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 89cf9bf..ec391cb 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -980,6 +980,10 @@ class Popen(object):
"""
if sig == signal.SIGTERM:
self.terminate()
+ elif sig == signal.CTRL_C_EVENT:
+ os.kill(self.pid, signal.CTRL_C_EVENT)
+ elif sig == signal.CTRL_BREAK_EVENT:
+ os.kill(self.pid, signal.CTRL_BREAK_EVENT)
else:
raise ValueError("Only SIGTERM is supported on Windows")