sys_getsid [kernel/sys.c]
Gets session ID of a process. Arguments
eax | 147
ebx | Process ID. If this value is 0, then the session ID of the current process is returned.
Return values If the system call succeeds the return value is the session ID of a given process. If the system call fails the return value is one of the following errno values:
`-EPERM` | `A process with process ID ebx exists, but it is not in the same session as the current process, and the implementation considers this an error.`
`-ESRCH` | `No process with process ID ebx was found.`
Remarks n/a Compatibility n/a