*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: setsid | Section: 2 | Source: MINIX | File: setsid.2
SETSID(2) System Calls Manual SETSID(2) NAME setsid, getpgrp - create process group, get process group id SYNOPSIS #include <sys/types.h> #include <unistd.h> pid_t setsid(void) pid_t getpgrp(void) DESCRIPTION Setsid() creates a new session if the calling process is not already a session leader. The calling process becomes the session leader of a new process group and the process group ID of this new process group will be equal to the process ID of the new session leader. The process group ID is inherited on a fork(2). Getpgrp() returns the process group ID of the calling process. SEE ALSO kill(2), termios(3), tty(4). DIAGNOSTICS Setsid() returns the new process group ID on success, or -1 with errno set to EPERM if the process is already a session leader. AUTHOR Kees J. Bot ([email protected]) SETSID(2)

Navigation Options