diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-10-01 14:49:24 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-10-01 14:49:24 (GMT) |
commit | 9e88b5aeee219c8b1968a29f206231cca2719ed3 (patch) | |
tree | 1adbbeb1e4e9273bc5c53e8e9ba8d3571841b037 /Modules/signalmodule.c | |
parent | 38e299615270e2a4a9b223b789924e899847f3cc (diff) | |
download | cpython-9e88b5aeee219c8b1968a29f206231cca2719ed3.zip cpython-9e88b5aeee219c8b1968a29f206231cca2719ed3.tar.gz cpython-9e88b5aeee219c8b1968a29f206231cca2719ed3.tar.bz2 |
Fix #10003. Add SIGBREAK to the set of valid signals on Windows.
This fixes a regression noticed by bzr, introduced by issue #9324.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 8b60e41..d34e177 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -261,6 +261,11 @@ signal_signal(PyObject *self, PyObject *args) /* Validate that sig_num is one of the allowable signals */ switch (sig_num) { case SIGABRT: break; +#ifdef SIGBREAK + /* Issue #10003: SIGBREAK is not documented as permitted, but works + and corresponds to CTRL_BREAK_EVENT. */ + case SIGBREAK: break; +#endif case SIGFPE: break; case SIGILL: break; case SIGINT: break; |