Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
73a75eb7
Commit
73a75eb7
authored
Jan 09, 1997
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initsignal(): Py_DECREFs really should be Py_XDECREFs in case the
PyInt_FromLong's failed.
parent
42185a2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
Modules/signalmodule.c
Modules/signalmodule.c
+34
-34
No files found.
Modules/signalmodule.c
View file @
73a75eb7
...
...
@@ -318,172 +318,172 @@ initsignal()
#ifdef SIGHUP
x
=
PyInt_FromLong
(
SIGHUP
);
PyDict_SetItemString
(
d
,
"SIGHUP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGINT
x
=
PyInt_FromLong
(
SIGINT
);
PyDict_SetItemString
(
d
,
"SIGINT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGQUIT
x
=
PyInt_FromLong
(
SIGQUIT
);
PyDict_SetItemString
(
d
,
"SIGQUIT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGILL
x
=
PyInt_FromLong
(
SIGILL
);
PyDict_SetItemString
(
d
,
"SIGILL"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGTRAP
x
=
PyInt_FromLong
(
SIGTRAP
);
PyDict_SetItemString
(
d
,
"SIGTRAP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGIOT
x
=
PyInt_FromLong
(
SIGIOT
);
PyDict_SetItemString
(
d
,
"SIGIOT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGABRT
x
=
PyInt_FromLong
(
SIGABRT
);
PyDict_SetItemString
(
d
,
"SIGABRT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGEMT
x
=
PyInt_FromLong
(
SIGEMT
);
PyDict_SetItemString
(
d
,
"SIGEMT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGFPE
x
=
PyInt_FromLong
(
SIGFPE
);
PyDict_SetItemString
(
d
,
"SIGFPE"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGKILL
x
=
PyInt_FromLong
(
SIGKILL
);
PyDict_SetItemString
(
d
,
"SIGKILL"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGBUS
x
=
PyInt_FromLong
(
SIGBUS
);
PyDict_SetItemString
(
d
,
"SIGBUS"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGSEGV
x
=
PyInt_FromLong
(
SIGSEGV
);
PyDict_SetItemString
(
d
,
"SIGSEGV"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGSYS
x
=
PyInt_FromLong
(
SIGSYS
);
PyDict_SetItemString
(
d
,
"SIGSYS"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGPIPE
x
=
PyInt_FromLong
(
SIGPIPE
);
PyDict_SetItemString
(
d
,
"SIGPIPE"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGALRM
x
=
PyInt_FromLong
(
SIGALRM
);
PyDict_SetItemString
(
d
,
"SIGALRM"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGTERM
x
=
PyInt_FromLong
(
SIGTERM
);
PyDict_SetItemString
(
d
,
"SIGTERM"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGUSR1
x
=
PyInt_FromLong
(
SIGUSR1
);
PyDict_SetItemString
(
d
,
"SIGUSR1"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGUSR2
x
=
PyInt_FromLong
(
SIGUSR2
);
PyDict_SetItemString
(
d
,
"SIGUSR2"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGCLD
x
=
PyInt_FromLong
(
SIGCLD
);
PyDict_SetItemString
(
d
,
"SIGCLD"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGCHLD
x
=
PyInt_FromLong
(
SIGCHLD
);
PyDict_SetItemString
(
d
,
"SIGCHLD"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGPWR
x
=
PyInt_FromLong
(
SIGPWR
);
PyDict_SetItemString
(
d
,
"SIGPWR"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGIO
x
=
PyInt_FromLong
(
SIGIO
);
PyDict_SetItemString
(
d
,
"SIGIO"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGURG
x
=
PyInt_FromLong
(
SIGURG
);
PyDict_SetItemString
(
d
,
"SIGURG"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGWINCH
x
=
PyInt_FromLong
(
SIGWINCH
);
PyDict_SetItemString
(
d
,
"SIGWINCH"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGPOLL
x
=
PyInt_FromLong
(
SIGPOLL
);
PyDict_SetItemString
(
d
,
"SIGPOLL"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGSTOP
x
=
PyInt_FromLong
(
SIGSTOP
);
PyDict_SetItemString
(
d
,
"SIGSTOP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGTSTP
x
=
PyInt_FromLong
(
SIGTSTP
);
PyDict_SetItemString
(
d
,
"SIGTSTP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGCONT
x
=
PyInt_FromLong
(
SIGCONT
);
PyDict_SetItemString
(
d
,
"SIGCONT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGTTIN
x
=
PyInt_FromLong
(
SIGTTIN
);
PyDict_SetItemString
(
d
,
"SIGTTIN"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGTTOU
x
=
PyInt_FromLong
(
SIGTTOU
);
PyDict_SetItemString
(
d
,
"SIGTTOU"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGVTALRM
x
=
PyInt_FromLong
(
SIGVTALRM
);
PyDict_SetItemString
(
d
,
"SIGVTALRM"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGPROF
x
=
PyInt_FromLong
(
SIGPROF
);
PyDict_SetItemString
(
d
,
"SIGPROF"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGXCPU
x
=
PyInt_FromLong
(
SIGXCPU
);
PyDict_SetItemString
(
d
,
"SIGXCPU"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#ifdef SIGXFSZ
x
=
PyInt_FromLong
(
SIGXFSZ
);
PyDict_SetItemString
(
d
,
"SIGXFSZ"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
if
(
!
PyErr_Occurred
())
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment