diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-09-07 21:31:17 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-09-07 21:31:17 (GMT) |
commit | 4b6fdf38525382dc279c5b32023f931e6db98591 (patch) | |
tree | 155ef27daaa49e0f2026d68e208d903b3e0d8a99 /Doc | |
parent | 8bc09039ed7a2aa9d878e82419baf3402c48600d (diff) | |
download | cpython-4b6fdf38525382dc279c5b32023f931e6db98591.zip cpython-4b6fdf38525382dc279c5b32023f931e6db98591.tar.gz cpython-4b6fdf38525382dc279c5b32023f931e6db98591.tar.bz2 |
#6394: Add os.getppid() support for Windows.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 8 | ||||
-rw-r--r-- | Doc/whatsnew/3.2.rst | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 2e29e4a..9373bda 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -281,10 +281,14 @@ process and user. .. index:: single: process; id of parent - Return the parent's process id. + Return the parent's process id. When the parent process has exited, on Unix + the id returned is the one of the init process (1), on Windows it is still + the same id, which may be already reused by another process. - Availability: Unix. + Availability: Unix, Windows + .. versionchanged:: 3.2 + Added support for Windows. .. function:: getresuid() diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 1dd1449..ff54bdd 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -312,6 +312,11 @@ New, Improved, and Deprecated Modules (Patch by Adam Jackson; :issue:`7647`.) +* :func:`os.getppid` is now supported on Windows. Note that it will continue to + return the same pid even after the parent process has exited. + + (Patch by Jon Anglin; :issue:`6394`.) + * The :func:`shutil.copytree` function has two new options: * *ignore_dangling_symlinks*: when ``symlinks=False`` so that the function |