mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Chris Herborth <chrish@pobox.com>:
Minor updates for BeOS R5. Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding change in BeOS/README (by Fred). This closes SourceForge patch #100978.
This commit is contained in:
parent
d341579178
commit
56221a7cfa
6 changed files with 59 additions and 40 deletions
|
@ -6,11 +6,20 @@ 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue