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.

classification
Title: os.waitpid docs don\'t specify return value for WNOHANG
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: apjenkins, georg.brandl, georg.brandl
Priority: normal Keywords:

Created on 2005-04-26 20:48 by apjenkins, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25139 - (view) Author: jls (apjenkins) Date: 2005-04-26 20:48
The library documentation for os.waitpid() does not
specify what the return value should be if the
os.WNOHANG flag is given, and the process still hasn't
exited.  

p, v = os.waitpid(pid, os.WNOHANG)

Through trial and error I discovered that in this case,
os.waitpid returns the tuple (0, 0) if pid is still
running.  This should be in the documentation for
os.waitpid().

msg25140 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-25 19:55
Logged In: YES 
user_id=1188172

Thanks for the report, fixed in Doc/lib/libos.tex r1.160,
r1.146.2.6.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41906
2005-04-26 20:48:54apjenkinscreate