Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
44ed3de6
Kaydet (Commit)
44ed3de6
authored
Agu 18, 2013
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18774: Remove last bits of GNU PTH thread code, patch by Vajrasky Kok.
üst
17dd53b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
NEWS
Misc/NEWS
+2
-0
signalmodule.c
Modules/signalmodule.c
+0
-12
No files found.
Misc/NEWS
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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