diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-08-31 01:04:15 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-08-31 01:04:15 (GMT) |
commit | 3f48d394930097724d5eb01499896d52ced4c4fc (patch) | |
tree | ad05f1f0a2b061f077f80f5b428b92a8271dd514 | |
parent | 7234e03cc91186c5d42502697b4fee69d8710eb8 (diff) | |
download | cpython-3f48d394930097724d5eb01499896d52ced4c4fc.zip cpython-3f48d394930097724d5eb01499896d52ced4c4fc.tar.gz cpython-3f48d394930097724d5eb01499896d52ced4c4fc.tar.bz2 |
getuid() returns real process id not effective (closes #22307)
-rw-r--r-- | Doc/library/os.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 32051c0..1ab039a 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -188,10 +188,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 variable - :envvar:`LOGNAME` 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 + variable :envvar:`LOGNAME` to find out who the user is, or + ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the process's real + user id. Availability: Unix. |