[ python-Bugs-1190563 ] os.waitpid docs don't specify return value for WNOHANG

SourceForge.net noreply at sourceforge.net
Sat Jun 25 21:55:50 CEST 2005


Bugs item #1190563, was opened at 2005-04-26 22:48
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1190563&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: jls (apjenkins)
>Assigned to: Reinhold Birkenfeld (birkenfeld)
Summary: os.waitpid docs don't specify return value for WNOHANG

Initial Comment:
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().



----------------------------------------------------------------------

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-06-25 21:55

Message:
Logged In: YES 
user_id=1188172

Thanks for the report, fixed in Doc/lib/libos.tex r1.160,
r1.146.2.6.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1190563&group_id=5470


More information about the Python-bugs-list mailing list