Query: getsid
OS: freebsd
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETSID(2) BSD System Calls Manual GETSID(2)NAMEgetsid -- get process sessionLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h> pid_t getsid(pid_t pid);DESCRIPTIONThe session ID of the process identified by pid is returned by getsid(). If pid is zero, getsid() returns the session ID of the current process.RETURN VALUESUpon successful completion, the getsid() system call returns the session ID of the specified process; otherwise, it returns a value of -1 and sets errno to indicate an error.ERRORSThe getsid() system call will succeed unless: [ESRCH] if there is no process with a process ID equal to pid. Note that an implementation may restrict this system call to processes within the same session ID as the calling process.SEE ALSOgetpgid(2), getpgrp(2), setpgid(2), setsid(2), termios(4)HISTORYThe getsid() system call appeared in FreeBSD 3.0. The getsid() system call is derived from its usage in AT&T System V UNIX.BSDAugust 19, 1997 BSD
Related Man Pages |
---|
getsid(2) - mojave |
getsid(2) - linux |
getsid(2) - sunos |
getsid(2) - debian |
getsid(2) - freebsd |
Similar Topics in the Unix Linux Community |
---|
which catagory |
system calls in C |