Copyright (C) 2000-2012 |
Manpages GETSIDSection: Linux Programmer's Manual (2)Updated: 1996-04-11 Index Return to Main Contents NAMEgetsid - get session IDSYNOPSIS#include <unistd.h>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.SEE ALSOsetsid(2)
IndexThis document was created by man2html, using the manual pages. Time: 07:44:25 GMT, April 24, 2024 |