| Rev | Author | # | Line |
|---|---|---|---|
| 1 | perry | 1 | !!NAME |
| 2 | PerryLorier | 2 | getsid - get session ID |
| 1 | perry | 3 | |
| 4 | !!SYNOPSIS | ||
| 2 | PerryLorier | 5 | __#include <unistd.h>__ |
| 1 | perry | 6 | |
| 2 | PerryLorier | 7 | __pid_t getsid(pid_t__ ''pid''__);__ |
| 1 | perry | 8 | |
| 9 | !!DESCRIPTION | ||
| 2 | PerryLorier | 10 | __getsid(0)__ returns the session ID of the calling process. __getsid(__''p''__)__ returns the session ID of the process with process ID ''p''. |
| 1 | perry | 11 | |
| 12 | !!ERRORS | ||
| 2 | PerryLorier | 13 | On error, -1 will be returned. The only error which can happen is [ESRCH], when no process with process ID ''p'' was found. |
| 1 | perry | 14 | |
| 15 | !!CONFORMING TO | ||
| 2 | PerryLorier | 16 | SVr4, which documents an additional [EPERM] error condition. |
| 1 | perry | 17 | |
| 18 | !!SEE ALSO | ||
| 19 | setsid(2) |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 8 times)