]> granicus.if.org Git - python/commitdiff
Patch [ 776725 ] add SIGRTMIN, SIGRTMAX to signalmodule.c
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 31 Jul 2003 10:35:29 +0000 (10:35 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 31 Jul 2003 10:35:29 +0000 (10:35 +0000)
Trivial patch, and the alternative is to guess at the right values
based on platform...

Modules/signalmodule.c

index e278dd1b3b8e9f9d50003759d27128eb989507dd..1b24cc95b817ac93fd77ad3758fa583d023a0736 100644 (file)
@@ -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);