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 eradman
Recipients docs@python, eradman
Date 2014-06-17.16:23:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403022188.82.0.702725813338.issue21791@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for the WNOHANG flag (https://docs.python.org/3.4/library/os.html#os.WNOHANG) suggests that a return value of (0, 0) indicates success. This is not always true, the second value may contain a value even on success. On OpenBSD 5.5 this is an exaple status of a process that is still running:

pid, status = os.waitpid(pid, os.WNOHANG)
(0, -168927460)

It would be more accurate to say that if pid==0 then the process is running and that status is platform dependent.
History
Date User Action Args
2014-06-17 16:23:08eradmansetrecipients: + eradman, docs@python
2014-06-17 16:23:08eradmansetmessageid: <1403022188.82.0.702725813338.issue21791@psf.upfronthosting.co.za>
2014-06-17 16:23:08eradmanlinkissue21791 messages
2014-06-17 16:23:08eradmancreate