mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
The usual
This commit is contained in:
parent
29201d4905
commit
8d691c8422
40 changed files with 1727 additions and 846 deletions
|
@ -6,14 +6,24 @@ child after a fork().
|
|||
On some systems (e.g. Solaris without posix threads) we find that all
|
||||
active threads survive in the child after a fork(); this is an error.
|
||||
|
||||
On BeOS, you CANNOT mix threads and fork(), the behaviour is undefined.
|
||||
That's OK, fork() is a grotesque hack anyway. ;-) [cjh]
|
||||
|
||||
"""
|
||||
|
||||
import os, sys, time, thread
|
||||
from test_support import TestSkipped
|
||||
|
||||
try:
|
||||
if os.uname()[0] == "BeOS":
|
||||
raise TestSkipped, "can't mix os.fork with threads on BeOS"
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
try:
|
||||
os.fork
|
||||
except AttributeError:
|
||||
raise ImportError, "os.fork not defined -- skipping test_fork1"
|
||||
raise TestSkipped, "os.fork not defined -- skipping test_fork1"
|
||||
|
||||
LONGSLEEP = 2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue