Commit 3f48d394 authored by Benjamin Peterson's avatar Benjamin Peterson

getuid() returns real process id not effective (closes #22307)

parent 7234e03c
...@@ -188,10 +188,10 @@ process and user. ...@@ -188,10 +188,10 @@ process and user.
.. function:: getlogin() .. function:: getlogin()
Return the name of the user logged in on the controlling terminal of the 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 process. For most purposes, it is more useful to use the environment
:envvar:`LOGNAME` to find out who the user is, or variable :envvar:`LOGNAME` to find out who the user is, or
``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the process's real
effective user id. user id.
Availability: Unix. Availability: Unix.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment