mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix #10003. Add SIGBREAK to the set of valid signals on Windows.
This fixes a regression noticed by bzr, introduced by issue #9324.
This commit is contained in:
parent
38e2996152
commit
9e88b5aeee
3 changed files with 14 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue