mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
SF patch [#466877] SIGBREAK is missing from signal module.
Patch from Steve Scott to add SIGBREAK support (unique to Windows).
This commit is contained in:
parent
fbacaf7298
commit
1ce3cf7749
3 changed files with 26 additions and 0 deletions
|
@ -383,6 +383,11 @@ initsignal(void)
|
|||
PyDict_SetItemString(d, "SIGINT", x);
|
||||
Py_XDECREF(x);
|
||||
#endif
|
||||
#ifdef SIGBREAK
|
||||
x = PyInt_FromLong(SIGBREAK);
|
||||
PyDict_SetItemString(d, "SIGBREAK", x);
|
||||
Py_XDECREF(x);
|
||||
#endif
|
||||
#ifdef SIGQUIT
|
||||
x = PyInt_FromLong(SIGQUIT);
|
||||
PyDict_SetItemString(d, "SIGQUIT", x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue