diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-10-01 17:58:40 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-10-01 17:58:40 (GMT) |
commit | 1ce3cf774968ea4b8cf21058eea5d4baee0b5349 (patch) | |
tree | 2b79199e442d2c559679d6eb12bb6f6ab4ab816e /Modules/signalmodule.c | |
parent | fbacaf7298fe9118d1c41b11de7449729ecc0bcd (diff) | |
download | cpython-1ce3cf774968ea4b8cf21058eea5d4baee0b5349.zip cpython-1ce3cf774968ea4b8cf21058eea5d4baee0b5349.tar.gz cpython-1ce3cf774968ea4b8cf21058eea5d4baee0b5349.tar.bz2 |
SF patch [#466877] SIGBREAK is missing from signal module.
Patch from Steve Scott to add SIGBREAK support (unique to Windows).
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 340445f..850221e 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -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); |