summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-08-31 01:04:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-08-31 01:04:15 (GMT)
commite218bcbf3936b5fb8124d22ecc7c0d2e92a8886b (patch)
treec51669d9b7b1507b2d143d98792bc44782f6ff7d /Doc/library/os.rst
parent0cff49fcf9b5689a8940c318ea0d846317f3a7d3 (diff)
downloadcpython-e218bcbf3936b5fb8124d22ecc7c0d2e92a8886b.zip
cpython-e218bcbf3936b5fb8124d22ecc7c0d2e92a8886b.tar.gz
cpython-e218bcbf3936b5fb8124d22ecc7c0d2e92a8886b.tar.bz2
getuid() returns real process id not effective (closes #22307)
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index bb751f4..0a59108 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -281,10 +281,10 @@ process and user.
.. function:: getlogin()
Return the name of the user logged in on the controlling terminal of the
- process. For most purposes, it is more useful to use the environment variables
- :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, or
- ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently
- effective user id.
+ process. For most purposes, it is more useful to use the environment
+ variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user
+ is, or ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current
+ real user id.
Availability: Unix, Windows.