]> granicus.if.org Git - python/commitdiff
initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions for
authorBarry Warsaw <barry@python.org>
Mon, 16 Dec 1996 20:24:22 +0000 (20:24 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 16 Dec 1996 20:24:22 +0000 (20:24 +0000)
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.

Modules/signalmodule.c

index 9e7f2396442318aa884745836752d88ca34afbad..5a9141933a0333d81e7038ac69da2b2d004295f6 100644 (file)
@@ -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())