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
e4508eeb
Kaydet (Commit)
e4508eeb
authored
Eki 17, 2013
tarafından
Richard Oudkerk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try strace instead of gdb to see what wedged child is doing.
üst
a3cf1aa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
_test_multiprocessing.py
Lib/test/_test_multiprocessing.py
+6
-4
No files found.
Lib/test/_test_multiprocessing.py
Dosyayı görüntüle @
e4508eeb
...
...
@@ -273,7 +273,10 @@ class _TestProcess(BaseTestCase):
@classmethod
def
_test_terminate
(
cls
):
print
(
'signal.getsignal(SIGTERM) ='
,
signal
.
getsignal
(
signal
.
SIGTERM
))
print
(
'starting sleep'
)
time
.
sleep
(
100
)
print
(
'finished sleep'
)
def
test_terminate
(
self
):
if
self
.
TYPE
==
'threads'
:
...
...
@@ -313,12 +316,11 @@ class _TestProcess(BaseTestCase):
except
RuntimeError
:
print
(
'os.waitpid() ='
,
os
.
waitpid
(
p
.
pid
,
os
.
WNOHANG
))
import
subprocess
p
=
subprocess
.
Popen
([
'gdb'
,
sys
.
executable
,
str
(
p
.
pid
)],
stdin
=
subprocess
.
PIPE
)
try
:
p
.
communicate
(
b
'bt 50'
,
timeout
=
10
)
subprocess
.
check_call
([
'strace'
,
'-p'
,
str
(
p
.
pid
)],
timeout
=
10
)
except
subprocess
.
TimeoutExpired
:
p
.
kill
()
p
ass
raise
finally
:
signal
.
signal
(
signal
.
SIGALRM
,
old_handler
)
...
...
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