mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Patch [ 776725 ] add SIGRTMIN, SIGRTMAX to signalmodule.c
Trivial patch, and the alternative is to guess at the right values based on platform...
This commit is contained in:
parent
4563769be9
commit
f37f37dec0
1 changed files with 10 additions and 0 deletions
|
@ -541,6 +541,16 @@ initsignal(void)
|
|||
PyDict_SetItemString(d, "SIGXFSZ", x);
|
||||
Py_XDECREF(x);
|
||||
#endif
|
||||
#ifdef SIGRTMIN
|
||||
x = PyInt_FromLong(SIGRTMIN);
|
||||
PyDict_SetItemString(d, "SIGRTMIN", x);
|
||||
Py_XDECREF(x);
|
||||
#endif
|
||||
#ifdef SIGRTMAX
|
||||
x = PyInt_FromLong(SIGRTMAX);
|
||||
PyDict_SetItemString(d, "SIGRTMAX", x);
|
||||
Py_XDECREF(x);
|
||||
#endif
|
||||
#ifdef SIGINFO
|
||||
x = PyInt_FromLong(SIGINFO);
|
||||
PyDict_SetItemString(d, "SIGINFO", x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue