-
Must every process group belong to one process session? In other
words, is process group a concept which exists only within a process
session?Is there a process group which doesn't belong to any process session? Can a process group not have a session id?
-
When a process group has been
disown
ed from a bash shell by the
builtin commanddisown
,-
does the process group still exist?
-
do the
processes originally in the process group still have the same group
id, implying that they still form a process group?
-
Must every process group belong to one process session
processprocess-groupssession
Best Answer
POSIX defines sessions thus:
All process groups belong to a session. The concepts aren't dependent though, so I wouldn't say that a process group is a concept which exists only within a session.
Background processes are given their own process group when they're created, so
disown
ing them doesn't change their process group;disown
only manipulates Bash's job table: