Function systemd::login::get_owner_uid [] [src]

pub fn get_owner_uid(pid: Option<pid_t>) -> Result<pid_t>

Determines the owner uid of a process.

Specific processes can be optionally targeted via their PID. When no PID is specified, operation is executed for the calling process. This method can be used to retrieve an owner uid.