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
44ed3de6
Commit
44ed3de6
authored
Aug 18, 2013
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #18774: Remove last bits of GNU PTH thread code, patch by Vajrasky Kok.
parent
17dd53b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
Misc/NEWS
Misc/NEWS
+2
-0
Modules/signalmodule.c
Modules/signalmodule.c
+0
-12
No files found.
Misc/NEWS
View file @
44ed3de6
...
...
@@ -10,6 +10,8 @@ Projected Release date: 2013-09-08
Core and Builtins
-----------------
- Issue #18774: Remove last bits of GNU PTH thread code and thread_pth.h.
- Issue #16105: When a signal handler fails to write to the file descriptor
registered with ``signal.set_wakeup_fd()``, report an exception instead
of ignoring the error.
...
...
Modules/signalmodule.c
View file @
44ed3de6
...
...
@@ -73,10 +73,6 @@
a working implementation that works in all three cases -- the
handler ignores signals if getpid() isn't the same as in the main
thread. XXX This is a hack.
GNU pth is a user-space threading library, and as such, all threads
run within the same process. In this case, if the currently running
thread is not the main_thread, send the signal to the main_thread.
*/
#ifdef WITH_THREAD
...
...
@@ -214,13 +210,6 @@ signal_handler(int sig_num)
{
int
save_errno
=
errno
;
#if defined(WITH_THREAD) && defined(WITH_PTH)
if
(
PyThread_get_thread_ident
()
!=
main_thread
)
{
pth_raise
(
*
(
pth_t
*
)
main_thread
,
sig_num
);
}
else
#endif
{
#ifdef WITH_THREAD
/* See NOTES section above */
if
(
getpid
()
==
main_pid
)
...
...
@@ -242,7 +231,6 @@ signal_handler(int sig_num)
* makes this true. See also issue8354. */
PyOS_setsig
(
sig_num
,
signal_handler
);
#endif
}
/* Issue #10311: asynchronously executing signal handlers should not
mutate errno under the feet of unsuspecting C code. */
...
...
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