mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
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.
This commit is contained in:
parent
8ba76d3cf3
commit
14ed5fb1ec
1 changed files with 8 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue