get the session ID of a process
#include <unistd.h> int getsid( int pid );
The getsid() function determines the session ID for the given process ID, pid.
The session ID. On error, -1 is returned, and errno is set accordingly.
POSIX 1003.1
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |