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 vstinner
Recipients gregory.p.smith, oconnor663, vstinner
Date 2020-12-04.11:08:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The script fails with "ChildProcessError: [Errno 10] No child processes" on line:

> os.waitpid(, 0)

The line before, you call child.kill() which sends SIGKILL signal to the process. So it's likely that the process will complete (killed by SIGKILL) soon.

I don't think that it's a good idea to attempt reading the process status directly (by calling os.waitpid), since subprocess already tracks the process status.

There is the public child.poll() API which calls os.waitpid(, 0) in a safe way for you. Why not using this API?

IMO this issue is not a bug.

Note: Python 3.8 behaves differently, but it doesn't mean that calling directly os.waitpid() was a good idea in Python 3.8 and older ;-)
Date User Action Args
2020-12-04 11:08:55vstinnersetrecipients: + vstinner, gregory.p.smith, oconnor663
2020-12-04 11:08:55vstinnersetmessageid: <>
2020-12-04 11:08:55vstinnerlinkissue42558 messages
2020-12-04 11:08:54vstinnercreate