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:
Tim Peters 2001-10-01 17:58:40 +00:00
parent fbacaf7298
commit 1ce3cf7749
3 changed files with 26 additions and 0 deletions

View file

@ -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);