commit | eb24d7498f3e34586fee24209f5630a58bb1a04b | [log] [tgz] |
---|---|---|
author | Brian Curtin <brian.curtin@gmail.com> | Mon Apr 12 17:16:38 2010 +0000 |
committer | Brian Curtin <brian.curtin@gmail.com> | Mon Apr 12 17:16:38 2010 +0000 |
tree | 2618500362c3b75e9ff541971954b57d14d66a86 | |
parent | b2416e54b15d90b4a1bc917897912061830b42fc [diff] [blame] |
Port #1220212 (os.kill for Win32) to py3k.
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 @@ """ 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")