This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author FFY00
Recipients Alexander Overvoorde, FFY00
Date 2020-05-07.23:35:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588894540.46.0.49287053011.issue40550@roundup.psfhosted.org>
In-reply-to
Content
This is the backtrace I get:

Traceback (most recent call last):
  File "/home/anubis/test/multiprocessing-error.py", line 16, in <module>
    proc.terminate()
  File "/home/anubis/git/cpython/Lib/subprocess.py", line 2069, in terminate
    self.send_signal(signal.SIGTERM)
  File "/home/anubis/git/cpython/Lib/subprocess.py", line 2064, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process

Is yours the same? This is expected, the process exited before proc.terminate().

You should wrap proc.terminate() in a try..except block:

try:
    proc.terminate()
except ProcessLookupError:
    pass

I am not sure we want to suppress this.
History
Date User Action Args
2020-05-07 23:35:40FFY00setrecipients: + FFY00, Alexander Overvoorde
2020-05-07 23:35:40FFY00setmessageid: <1588894540.46.0.49287053011.issue40550@roundup.psfhosted.org>
2020-05-07 23:35:40FFY00linkissue40550 messages
2020-05-07 23:35:40FFY00create