diff options
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 4 |
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") |