Function systemd::login::get_session
[−]
[src]
pub fn get_session(pid: Option<pid_t>) -> Result<String>
Determines the session identifier 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 a session identifier.