From: Benjamin Peterson Date: Sun, 31 Aug 2014 01:04:15 +0000 (-0400) Subject: getuid() returns real process id not effective (closes #22307) X-Git-Tag: v2.7.9rc1~263 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f48d394930097724d5eb01499896d52ced4c4fc;p=thirdparty%2FPython%2Fcpython.git getuid() returns real process id not effective (closes #22307) --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 32051c078f12..1ab039af08cc 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.