Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

CentOS 2.1AS

(Slurm)

getsid(2)


GETSID

GETSID

NAME
SYNOPSIS
DESCRIPTION
ERRORS
CONFORMING TO
SEE ALSO

NAME

getsid − get session ID

SYNOPSIS

#include <unistd.h>

pid_t getsid(pid_t pid);

DESCRIPTION

getsid(0) returns the session ID of the calling process. getsid(p) returns the session ID of the process with process ID p.

ERRORS

On error, −1 will be returned. The only error which can happen is ESRCH, when no process with process ID p was found.

CONFORMING TO

SVr4, which documents an additional EPERM error condition.

SEE ALSO

setsid(2)



getsid(2)