GETSIDSection: Linux Programmer's Manual (2)
Return to Main Contents
NAMEgetsid - get session ID
DESCRIPTIONgetsid(0) returns the session ID of the calling process. getsid(p) returns the session ID of the process with process ID p.
ERRORSOn error, -1 will be returned. The only error which can happen is ESRCH, when no process with process ID p was found.
CONFORMING TOSVr4, which documents an additional EPERM error condition.
This document was created by man2html, using the manual pages.
Time: 15:22:34 GMT, July 17, 2018