[Previous]
[Contents]
[Next]

getsid()

get the session ID of a process

Synopsis:

#include <unistd.h>
int getsid( int pid );

Description:

The getsid() function determines the session ID for the given process ID, pid.

Returns:

The session ID. On error, -1 is returned, and errno is set accordingly.

Errors:

EINVAL
There isn't a process with the given ID.

Classification:

POSIX 1003.1

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

errno, setsid()


[Previous]
[Contents]
[Next]