Search Results
See Also ¶ The POSIX.1 and the setsid (2) manual page on the POSIX system for more information on process groups and job control.
A System V process group would correspond to a POSIX System Interfaces session containing a single POSIX process group. Note that this function requires that the calling process not be a process group leader. The usual way to ensure this is true is to create a new process with fork () and have it call setsid ().
A System V process group would correspond to a POSIX System Interfaces session containing a single POSIX process group. Note that this function requires that the calling process not be a process group leader. The usual way to ensure this is true is to create a new process with fork () and have it call setsid ().
Disallowing a process group leader from calling setsid () prevents the possibility that a process group leader places itself in a new session while other processes in the process group remain in the original session; such a scenario would break the strict two-level hierarchy of sessions and process groups.
A System V process group would correspond to a POSIX System Interfaces session containing a single POSIX process group. Note that this function requires that the calling process not be a process group leader. The usual way to ensure this is true is to create a new process with fork () and have it call setsid ().
A System V process group would correspond to a POSIX System Interfaces session containing a single POSIX process group. Note that this function requires that the calling process not be a process group leader. The usual way to ensure this is true is to create a new process with fork () and have it call setsid ().
setsid Create Session and Specify Process Group ID Portability: POSIX.1 conforming SYNOPSIS DESCRIPTION RETURN VALUE EXAMPLE RELATED FUNCTIONS
