Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.waitpid docs don\'t specify return value for WNOHANG #41906

Closed
apjenkins mannequin opened this issue Apr 26, 2005 · 2 comments
Closed

os.waitpid docs don\'t specify return value for WNOHANG #41906

apjenkins mannequin opened this issue Apr 26, 2005 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@apjenkins
Copy link
Mannequin

apjenkins mannequin commented Apr 26, 2005

BPO 1190563
Nosy @birkenfeld, @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2005-06-25.19:55:50.000>
created_at = <Date 2005-04-26.20:48:54.000>
labels = ['docs']
title = "os.waitpid docs don\\'t specify return value for WNOHANG"
updated_at = <Date 2005-06-25.19:55:50.000>
user = 'https://bugs.python.org/apjenkins'

bugs.python.org fields:

activity = <Date 2005-06-25.19:55:50.000>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2005-04-26.20:48:54.000>
creator = 'apjenkins'
dependencies = []
files = []
hgrepos = []
issue_num = 1190563
keywords = []
message_count = 2.0
messages = ['25139', '25140']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'georg.brandl', 'apjenkins']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1190563'
versions = []

@apjenkins
Copy link
Mannequin Author

apjenkins mannequin commented Apr 26, 2005

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().

@apjenkins apjenkins mannequin closed this as completed Apr 26, 2005
@apjenkins apjenkins mannequin assigned birkenfeld Apr 26, 2005
@apjenkins apjenkins mannequin added the docs Documentation in the Doc dir label Apr 26, 2005
@birkenfeld
Copy link
Member

Logged In: YES
user_id=1188172

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant