Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
getsid(2)
Edit
PageHistory
Diff
Info
LikePages
!!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)
2 pages link to
getsid(2)
:
Man2g
syscalls(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.