proc_sid_pid()

The SID of the process

Syntax:

int proc_sid_pid(int pid);

Arguments:

Name Description
pid PID of process

Description:

The SID of the process (session).

Return Values:

On success, returns the SID of the process. On error, -1 is returned.

See Also:

proc_state_pid(), proc_exe_name_pid(), proc_ppid_pid(), proc_pgrp_pid() proc_terminal_pid(), proc_ptgid_pid(), proc_flags_pid()



INDEX