Computer Science


GETSID(2)           Linux Programmer's Manual           GETSID(2)

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  pro-
       cess 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).

Linux 1.3.85              11 April 1996                         1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page