summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst8
-rw-r--r--Doc/whatsnew/3.2.rst5
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