[New-bugs-announce] [issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()
Huazuo Gao
report at bugs.python.org
Fri Jan 4 06:52:47 EST 2019
New submission from Huazuo Gao <gaohuazuo at gmail.com>:
import os
import time
from multiprocessing import Process
p = Process(target=lambda:os.execlp('bash', 'bash', '-c', 'sleep 1.5'))
t0 = time.time()
p.start()
p.join(0.1)
print(time.time() - t0)
---
Python 3.5 - 3.8 take 1.5 sec to finish
Python 2.7 take 0.1 sec to finish
----------
components: Library (Lib)
messages: 332970
nosy: Huazuo Gao
priority: normal
severity: normal
status: open
title: multiprocessing.Process.join() ignores timeout if child process use os.exec*()
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35657>
_______________________________________
More information about the New-bugs-announce
mailing list