src/Shell/CakeResqueShell.php
private function __getProcessOwner()
    {
        if (function_exists('posix_getpwuid')) {
            $a = posix_getpwuid(posix_getuid());

            return $a['name'];
        } else {
            $user = trim(exec('whoami', $o, $code));
            if ($code === 0) {
                return $user;
            }

            return false;
        }

        return false;
    }
private function __getProcessOwner()
    {
        if (function_exists('posix_getpwuid')) {
            $a = posix_getpwuid(posix_getuid());

            return $a['name'];
        } else {
            $user = trim(exec('whoami', $o, $code));
            if ($code === 0) {
                return $user;
            }

            return false;
        }

        return false;
    }
private function __getProcessOwner ( ) { if ( function_exists ( 'posix_getpwuid' ) ) { $ a = posix_getpwuid ( posix_getuid ( ) ) ; return $ a [ 'name' ] ; } else { $ user = trim ( exec ( 'whoami' , $ o , $ code ) ) ; if ( $ code === 0 ) { return $ user ; } return false ; } return false ; }
Get the username of the current process owner.

@since 4.0.0
@codeCoverageIgnore
@return string Username of the current process owner if found, false otherwise.
Get the username of the current process owner .