[issue39941] multiprocessing: Process.join() should emit a warning if the process is killed by a signal

STINNER Victor report at bugs.python.org
Wed Mar 11 19:10:56 EDT 2020


New submission from STINNER Victor <vstinner at python.org>:

While debugging bpo-39877, I was surprising that Python crash was only noticed on FreeBSD by a side effect. On FreeBSD, coredump files are created in the current directory. But Python regrtest fails if a test creates a file and doesn't remove it.

I found that multiprocessing.Process.join() deletes the subprocess.Popen object as soon as the process completes, but it doesn't log any warning if the process is killed by a signal. The caller has no way to be notified.

I propose to enhance Process to log a warning if such case happens.

----------
components: Library (Lib)
messages: 363980
nosy: vstinner
priority: normal
severity: normal
status: open
title: multiprocessing: Process.join() should emit a warning if the process is killed by a signal
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39941>
_______________________________________


More information about the Python-bugs-list mailing list