[Python-checkins] python/dist/src/Modules signalmodule.c,2.73,2.74

anthonybaxter@users.sourceforge.net anthonybaxter@users.sourceforge.net
Thu, 31 Jul 2003 03:35:31 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv17091

Modified Files:
	signalmodule.c 
Log Message:
Patch [ 776725 ] add SIGRTMIN, SIGRTMAX to signalmodule.c

Trivial patch, and the alternative is to guess at the right values 
based on platform...


Index: signalmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/signalmodule.c,v
retrieving revision 2.73
retrieving revision 2.74
diff -C2 -d -r2.73 -r2.74
*** signalmodule.c	13 Mar 2003 13:56:53 -0000	2.73
--- signalmodule.c	31 Jul 2003 10:35:29 -0000	2.74
***************
*** 542,545 ****
--- 542,555 ----
          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);