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()
...
@@ -318,172 +318,172 @@ initsignal()
#ifdef SIGHUP
#ifdef SIGHUP
x
=
PyInt_FromLong
(
SIGHUP
);
x
=
PyInt_FromLong
(
SIGHUP
);
PyDict_SetItemString
(
d
,
"SIGHUP"
,
x
);
PyDict_SetItemString
(
d
,
"SIGHUP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGINT
#ifdef SIGINT
x
=
PyInt_FromLong
(
SIGINT
);
x
=
PyInt_FromLong
(
SIGINT
);
PyDict_SetItemString
(
d
,
"SIGINT"
,
x
);
PyDict_SetItemString
(
d
,
"SIGINT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGQUIT
#ifdef SIGQUIT
x
=
PyInt_FromLong
(
SIGQUIT
);
x
=
PyInt_FromLong
(
SIGQUIT
);
PyDict_SetItemString
(
d
,
"SIGQUIT"
,
x
);
PyDict_SetItemString
(
d
,
"SIGQUIT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGILL
#ifdef SIGILL
x
=
PyInt_FromLong
(
SIGILL
);
x
=
PyInt_FromLong
(
SIGILL
);
PyDict_SetItemString
(
d
,
"SIGILL"
,
x
);
PyDict_SetItemString
(
d
,
"SIGILL"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGTRAP
#ifdef SIGTRAP
x
=
PyInt_FromLong
(
SIGTRAP
);
x
=
PyInt_FromLong
(
SIGTRAP
);
PyDict_SetItemString
(
d
,
"SIGTRAP"
,
x
);
PyDict_SetItemString
(
d
,
"SIGTRAP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGIOT
#ifdef SIGIOT
x
=
PyInt_FromLong
(
SIGIOT
);
x
=
PyInt_FromLong
(
SIGIOT
);
PyDict_SetItemString
(
d
,
"SIGIOT"
,
x
);
PyDict_SetItemString
(
d
,
"SIGIOT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGABRT
#ifdef SIGABRT
x
=
PyInt_FromLong
(
SIGABRT
);
x
=
PyInt_FromLong
(
SIGABRT
);
PyDict_SetItemString
(
d
,
"SIGABRT"
,
x
);
PyDict_SetItemString
(
d
,
"SIGABRT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGEMT
#ifdef SIGEMT
x
=
PyInt_FromLong
(
SIGEMT
);
x
=
PyInt_FromLong
(
SIGEMT
);
PyDict_SetItemString
(
d
,
"SIGEMT"
,
x
);
PyDict_SetItemString
(
d
,
"SIGEMT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGFPE
#ifdef SIGFPE
x
=
PyInt_FromLong
(
SIGFPE
);
x
=
PyInt_FromLong
(
SIGFPE
);
PyDict_SetItemString
(
d
,
"SIGFPE"
,
x
);
PyDict_SetItemString
(
d
,
"SIGFPE"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGKILL
#ifdef SIGKILL
x
=
PyInt_FromLong
(
SIGKILL
);
x
=
PyInt_FromLong
(
SIGKILL
);
PyDict_SetItemString
(
d
,
"SIGKILL"
,
x
);
PyDict_SetItemString
(
d
,
"SIGKILL"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGBUS
#ifdef SIGBUS
x
=
PyInt_FromLong
(
SIGBUS
);
x
=
PyInt_FromLong
(
SIGBUS
);
PyDict_SetItemString
(
d
,
"SIGBUS"
,
x
);
PyDict_SetItemString
(
d
,
"SIGBUS"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGSEGV
#ifdef SIGSEGV
x
=
PyInt_FromLong
(
SIGSEGV
);
x
=
PyInt_FromLong
(
SIGSEGV
);
PyDict_SetItemString
(
d
,
"SIGSEGV"
,
x
);
PyDict_SetItemString
(
d
,
"SIGSEGV"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGSYS
#ifdef SIGSYS
x
=
PyInt_FromLong
(
SIGSYS
);
x
=
PyInt_FromLong
(
SIGSYS
);
PyDict_SetItemString
(
d
,
"SIGSYS"
,
x
);
PyDict_SetItemString
(
d
,
"SIGSYS"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGPIPE
#ifdef SIGPIPE
x
=
PyInt_FromLong
(
SIGPIPE
);
x
=
PyInt_FromLong
(
SIGPIPE
);
PyDict_SetItemString
(
d
,
"SIGPIPE"
,
x
);
PyDict_SetItemString
(
d
,
"SIGPIPE"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGALRM
#ifdef SIGALRM
x
=
PyInt_FromLong
(
SIGALRM
);
x
=
PyInt_FromLong
(
SIGALRM
);
PyDict_SetItemString
(
d
,
"SIGALRM"
,
x
);
PyDict_SetItemString
(
d
,
"SIGALRM"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGTERM
#ifdef SIGTERM
x
=
PyInt_FromLong
(
SIGTERM
);
x
=
PyInt_FromLong
(
SIGTERM
);
PyDict_SetItemString
(
d
,
"SIGTERM"
,
x
);
PyDict_SetItemString
(
d
,
"SIGTERM"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGUSR1
#ifdef SIGUSR1
x
=
PyInt_FromLong
(
SIGUSR1
);
x
=
PyInt_FromLong
(
SIGUSR1
);
PyDict_SetItemString
(
d
,
"SIGUSR1"
,
x
);
PyDict_SetItemString
(
d
,
"SIGUSR1"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGUSR2
#ifdef SIGUSR2
x
=
PyInt_FromLong
(
SIGUSR2
);
x
=
PyInt_FromLong
(
SIGUSR2
);
PyDict_SetItemString
(
d
,
"SIGUSR2"
,
x
);
PyDict_SetItemString
(
d
,
"SIGUSR2"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGCLD
#ifdef SIGCLD
x
=
PyInt_FromLong
(
SIGCLD
);
x
=
PyInt_FromLong
(
SIGCLD
);
PyDict_SetItemString
(
d
,
"SIGCLD"
,
x
);
PyDict_SetItemString
(
d
,
"SIGCLD"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGCHLD
#ifdef SIGCHLD
x
=
PyInt_FromLong
(
SIGCHLD
);
x
=
PyInt_FromLong
(
SIGCHLD
);
PyDict_SetItemString
(
d
,
"SIGCHLD"
,
x
);
PyDict_SetItemString
(
d
,
"SIGCHLD"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGPWR
#ifdef SIGPWR
x
=
PyInt_FromLong
(
SIGPWR
);
x
=
PyInt_FromLong
(
SIGPWR
);
PyDict_SetItemString
(
d
,
"SIGPWR"
,
x
);
PyDict_SetItemString
(
d
,
"SIGPWR"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGIO
#ifdef SIGIO
x
=
PyInt_FromLong
(
SIGIO
);
x
=
PyInt_FromLong
(
SIGIO
);
PyDict_SetItemString
(
d
,
"SIGIO"
,
x
);
PyDict_SetItemString
(
d
,
"SIGIO"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGURG
#ifdef SIGURG
x
=
PyInt_FromLong
(
SIGURG
);
x
=
PyInt_FromLong
(
SIGURG
);
PyDict_SetItemString
(
d
,
"SIGURG"
,
x
);
PyDict_SetItemString
(
d
,
"SIGURG"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGWINCH
#ifdef SIGWINCH
x
=
PyInt_FromLong
(
SIGWINCH
);
x
=
PyInt_FromLong
(
SIGWINCH
);
PyDict_SetItemString
(
d
,
"SIGWINCH"
,
x
);
PyDict_SetItemString
(
d
,
"SIGWINCH"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGPOLL
#ifdef SIGPOLL
x
=
PyInt_FromLong
(
SIGPOLL
);
x
=
PyInt_FromLong
(
SIGPOLL
);
PyDict_SetItemString
(
d
,
"SIGPOLL"
,
x
);
PyDict_SetItemString
(
d
,
"SIGPOLL"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGSTOP
#ifdef SIGSTOP
x
=
PyInt_FromLong
(
SIGSTOP
);
x
=
PyInt_FromLong
(
SIGSTOP
);
PyDict_SetItemString
(
d
,
"SIGSTOP"
,
x
);
PyDict_SetItemString
(
d
,
"SIGSTOP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGTSTP
#ifdef SIGTSTP
x
=
PyInt_FromLong
(
SIGTSTP
);
x
=
PyInt_FromLong
(
SIGTSTP
);
PyDict_SetItemString
(
d
,
"SIGTSTP"
,
x
);
PyDict_SetItemString
(
d
,
"SIGTSTP"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGCONT
#ifdef SIGCONT
x
=
PyInt_FromLong
(
SIGCONT
);
x
=
PyInt_FromLong
(
SIGCONT
);
PyDict_SetItemString
(
d
,
"SIGCONT"
,
x
);
PyDict_SetItemString
(
d
,
"SIGCONT"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGTTIN
#ifdef SIGTTIN
x
=
PyInt_FromLong
(
SIGTTIN
);
x
=
PyInt_FromLong
(
SIGTTIN
);
PyDict_SetItemString
(
d
,
"SIGTTIN"
,
x
);
PyDict_SetItemString
(
d
,
"SIGTTIN"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGTTOU
#ifdef SIGTTOU
x
=
PyInt_FromLong
(
SIGTTOU
);
x
=
PyInt_FromLong
(
SIGTTOU
);
PyDict_SetItemString
(
d
,
"SIGTTOU"
,
x
);
PyDict_SetItemString
(
d
,
"SIGTTOU"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGVTALRM
#ifdef SIGVTALRM
x
=
PyInt_FromLong
(
SIGVTALRM
);
x
=
PyInt_FromLong
(
SIGVTALRM
);
PyDict_SetItemString
(
d
,
"SIGVTALRM"
,
x
);
PyDict_SetItemString
(
d
,
"SIGVTALRM"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGPROF
#ifdef SIGPROF
x
=
PyInt_FromLong
(
SIGPROF
);
x
=
PyInt_FromLong
(
SIGPROF
);
PyDict_SetItemString
(
d
,
"SIGPROF"
,
x
);
PyDict_SetItemString
(
d
,
"SIGPROF"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGXCPU
#ifdef SIGXCPU
x
=
PyInt_FromLong
(
SIGXCPU
);
x
=
PyInt_FromLong
(
SIGXCPU
);
PyDict_SetItemString
(
d
,
"SIGXCPU"
,
x
);
PyDict_SetItemString
(
d
,
"SIGXCPU"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
#ifdef SIGXFSZ
#ifdef SIGXFSZ
x
=
PyInt_FromLong
(
SIGXFSZ
);
x
=
PyInt_FromLong
(
SIGXFSZ
);
PyDict_SetItemString
(
d
,
"SIGXFSZ"
,
x
);
PyDict_SetItemString
(
d
,
"SIGXFSZ"
,
x
);
Py_DECREF
(
x
);
Py_
X
DECREF
(
x
);
#endif
#endif
if
(
!
PyErr_Occurred
())
if
(
!
PyErr_Occurred
())
return
;
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