summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2003-07-31 10:35:29 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2003-07-31 10:35:29 (GMT)
commitf37f37dec06cb2f30ce3ba0e6e2ae9b140767b65 (patch)
tree80021b9319c06954f0342ce5f7e9d09d27ab5b2c /Modules/signalmodule.c
parent4563769be9f8a02e201f75a2a2f9fe2e93ea4b89 (diff)
downloadcpython-f37f37dec06cb2f30ce3ba0e6e2ae9b140767b65.zip
cpython-f37f37dec06cb2f30ce3ba0e6e2ae9b140767b65.tar.gz
cpython-f37f37dec06cb2f30ce3ba0e6e2ae9b140767b65.tar.bz2
Patch [ 776725 ] add SIGRTMIN, SIGRTMAX to signalmodule.c
Trivial patch, and the alternative is to guess at the right values based on platform...
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index e278dd1..1b24cc9 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -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);