[New-bugs-announce] [issue4452] Incorrect docstring of os.setpgrp

Mark Florisson report at bugs.python.org
Fri Nov 28 15:23:31 CET 2008


New submission from Mark Florisson <markflorisson88 at gmail.com>:

The docstring of os.setpgrp says 'Make this process a session leader.',
but that's not what setpgrp does. setpgrp() is the same as setpgid(0,
0), which sets the pgid of the calling process to the pid of the calling
process, thus making it a process group leader, not a session leader (it
will still be in the same session). It might say instead 'Make this
process a process group leader.'.

----------
messages: 76529
nosy: eggy
severity: normal
status: open
title: Incorrect docstring of os.setpgrp
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4452>
_______________________________________


More information about the New-bugs-announce mailing list