diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-18 10:43:24 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-18 10:43:24 (GMT) |
commit | 44ed3de6f4f8cbea278f68b5a8a33a26c76f6251 (patch) | |
tree | d1395dde66cbbbb8c8503211b89c3b8d0a94e0e0 /Modules/signalmodule.c | |
parent | 17dd53b4645c4684e8b662e937fe0f7cd3b45088 (diff) | |
download | cpython-44ed3de6f4f8cbea278f68b5a8a33a26c76f6251.zip cpython-44ed3de6f4f8cbea278f68b5a8a33a26c76f6251.tar.gz cpython-44ed3de6f4f8cbea278f68b5a8a33a26c76f6251.tar.bz2 |
Issue #18774: Remove last bits of GNU PTH thread code, patch by Vajrasky Kok.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index bc99f23..9a0e8e3 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -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. */ |