From: Barry Warsaw Date: Mon, 16 Dec 1996 20:24:22 +0000 (+0000) Subject: initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions for X-Git-Tag: v1.5a1~740 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14ed5fb1ec62bd69b6eb8994ab17645bbd4adba7;p=python initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions for SIGCPU and SIGFSZ but we're (Jeremy and I) are actually unsure whether these were typos or if there are systems that use these alternate names. We've checked Solaris, SunOS, and IRIX; they contain only the SIGX* names. --- diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 9e7f239644..5a9141933a 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -435,9 +435,17 @@ initsignal() x = PyInt_FromLong(SIGCPU); PyDict_SetItemString(d, "SIGCPU", x); #endif +#ifdef SIGXCPU + x = PyInt_FromLong(SIGXCPU); + PyDict_SetItemString(d, "SIGXCPU", x); +#endif #ifdef SIGFSZ x = PyInt_FromLong(SIGFSZ); PyDict_SetItemString(d, "SIGFSZ", x); +#endif +#ifdef SIGXFSZ + x = PyInt_FromLong(SIGXFSZ); + PyDict_SetItemString(d, "SIGXFSZ", x); #endif /* Check for errors */ if (PyErr_Occurred())