diff options
author | Barry Warsaw <barry@python.org> | 1997-01-09 23:50:28 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-01-09 23:50:28 (GMT) |
commit | 73a75eb79bb6a82e4a3643c3f085cbd0a6a9351a (patch) | |
tree | dbab88edc076960eefa92d076a00ddfbd935cdf5 /Modules | |
parent | 42185a2d7ad05df4ec81af6545aaf5151a0870a9 (diff) | |
download | cpython-73a75eb79bb6a82e4a3643c3f085cbd0a6a9351a.zip cpython-73a75eb79bb6a82e4a3643c3f085cbd0a6a9351a.tar.gz cpython-73a75eb79bb6a82e4a3643c3f085cbd0a6a9351a.tar.bz2 |
initsignal(): Py_DECREFs really should be Py_XDECREFs in case the
PyInt_FromLong's failed.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/signalmodule.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 2802af7..f15c62a 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -318,172 +318,172 @@ initsignal() #ifdef SIGHUP x = PyInt_FromLong(SIGHUP); PyDict_SetItemString(d, "SIGHUP", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGINT x = PyInt_FromLong(SIGINT); PyDict_SetItemString(d, "SIGINT", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGQUIT x = PyInt_FromLong(SIGQUIT); PyDict_SetItemString(d, "SIGQUIT", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGILL x = PyInt_FromLong(SIGILL); PyDict_SetItemString(d, "SIGILL", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGTRAP x = PyInt_FromLong(SIGTRAP); PyDict_SetItemString(d, "SIGTRAP", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGIOT x = PyInt_FromLong(SIGIOT); PyDict_SetItemString(d, "SIGIOT", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGABRT x = PyInt_FromLong(SIGABRT); PyDict_SetItemString(d, "SIGABRT", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGEMT x = PyInt_FromLong(SIGEMT); PyDict_SetItemString(d, "SIGEMT", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGFPE x = PyInt_FromLong(SIGFPE); PyDict_SetItemString(d, "SIGFPE", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGKILL x = PyInt_FromLong(SIGKILL); PyDict_SetItemString(d, "SIGKILL", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGBUS x = PyInt_FromLong(SIGBUS); PyDict_SetItemString(d, "SIGBUS", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGSEGV x = PyInt_FromLong(SIGSEGV); PyDict_SetItemString(d, "SIGSEGV", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGSYS x = PyInt_FromLong(SIGSYS); PyDict_SetItemString(d, "SIGSYS", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGPIPE x = PyInt_FromLong(SIGPIPE); PyDict_SetItemString(d, "SIGPIPE", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGALRM x = PyInt_FromLong(SIGALRM); PyDict_SetItemString(d, "SIGALRM", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGTERM x = PyInt_FromLong(SIGTERM); PyDict_SetItemString(d, "SIGTERM", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGUSR1 x = PyInt_FromLong(SIGUSR1); PyDict_SetItemString(d, "SIGUSR1", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGUSR2 x = PyInt_FromLong(SIGUSR2); PyDict_SetItemString(d, "SIGUSR2", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGCLD x = PyInt_FromLong(SIGCLD); PyDict_SetItemString(d, "SIGCLD", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGCHLD x = PyInt_FromLong(SIGCHLD); PyDict_SetItemString(d, "SIGCHLD", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGPWR x = PyInt_FromLong(SIGPWR); PyDict_SetItemString(d, "SIGPWR", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGIO x = PyInt_FromLong(SIGIO); PyDict_SetItemString(d, "SIGIO", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGURG x = PyInt_FromLong(SIGURG); PyDict_SetItemString(d, "SIGURG", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGWINCH x = PyInt_FromLong(SIGWINCH); PyDict_SetItemString(d, "SIGWINCH", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGPOLL x = PyInt_FromLong(SIGPOLL); PyDict_SetItemString(d, "SIGPOLL", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGSTOP x = PyInt_FromLong(SIGSTOP); PyDict_SetItemString(d, "SIGSTOP", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGTSTP x = PyInt_FromLong(SIGTSTP); PyDict_SetItemString(d, "SIGTSTP", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGCONT x = PyInt_FromLong(SIGCONT); PyDict_SetItemString(d, "SIGCONT", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGTTIN x = PyInt_FromLong(SIGTTIN); PyDict_SetItemString(d, "SIGTTIN", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGTTOU x = PyInt_FromLong(SIGTTOU); PyDict_SetItemString(d, "SIGTTOU", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGVTALRM x = PyInt_FromLong(SIGVTALRM); PyDict_SetItemString(d, "SIGVTALRM", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGPROF x = PyInt_FromLong(SIGPROF); PyDict_SetItemString(d, "SIGPROF", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGXCPU x = PyInt_FromLong(SIGXCPU); PyDict_SetItemString(d, "SIGXCPU", x); - Py_DECREF(x); + Py_XDECREF(x); #endif #ifdef SIGXFSZ x = PyInt_FromLong(SIGXFSZ); PyDict_SetItemString(d, "SIGXFSZ", x); - Py_DECREF(x); + Py_XDECREF(x); #endif if (!PyErr_Occurred()) return; |