mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Issue #13812: When a multiprocessing Process child raises an exception, flush stderr after printing the exception traceback.
This commit is contained in:
parent
9f6b02ecde
commit
84a0fbf6b0
4 changed files with 30 additions and 5 deletions
|
|
@ -124,8 +124,6 @@ def __init__(self, process_obj):
|
|||
import random
|
||||
random.seed()
|
||||
code = process_obj._bootstrap()
|
||||
sys.stdout.flush()
|
||||
sys.stderr.flush()
|
||||
os._exit(code)
|
||||
|
||||
def poll(self, flag=os.WNOHANG):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue