Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] test_fork1 on Linux

Fred L. Drake, Jr.fdrake@acm.org
Mon, 10 Apr 2000 11:45:29 -0400 (EDT)


  I've just checked in changes to test_fork1.py make the test a littlemore sensible on Linux (where the assumption that the thread pids arethe same as the controlling process doesn't hold).  However, I'm still observing some serious weirdness with this test.As far as I've been able to tell, the os.fork() call always succeeds,but sometimes the parent process segfaults, and sometimes it locksup.  It does seem to get to the os.waitpid() call, which isiappearantly where the failure actually occurs.  (And sometimeseverything works as expected!)  If anyone here is particularly familiar with threading on Linux, I'dappreciate a little help, or even a pointer to someone who understandsenough of the low-level aspects of threading on Linux that I cancommunicate with them to figure this out.  Thanks!  -Fred--Fred L. Drake, Jr.  <fdrake at acm.org>Corporation for National Research Initiatives


[8]ページ先頭

©2009-2025 Movatter.jp