Penguin

Differences between current version and previous revision of getsid(2).

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Tuesday, December 31, 2002 2:08:01 am by PerryLorier
Older page: version 1 Last edited on Tuesday, June 4, 2002 12:23:41 am by perry Revert
@@ -1,42 +1,19 @@
-GETSID  
-!!!GETSID  
-NAME  
-SYNOPSIS  
-DESCRIPTION  
-ERRORS  
-CONFORMING TO  
-SEE ALSO  
-----  
 !!NAME 
+getsid - get session ID  
  
-  
-getsid - get session ID  
 !!SYNOPSIS 
+ __#include <unistd.h>__  
  
+ __pid_t getsid(pid_t__ ''pid''__);__  
  
-__#include __  
-  
-  
-__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''.  
  
-  
-__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.  
  
-  
-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.  
  
-  
-SVr4, which documents an additional EPERM error  
-condition.  
 !!SEE ALSO 
-  
-  
 setsid(2) 
-----  
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.