In a process session with a controlling terminal,
if the controlling process closes the file descriptor of the controlling terminal, does the process session become detached from the controlling terminal, i.e. not have any controlling terminal?
What if a non-controlling process in the session closes the file descriptor of the controlling terminal?
Thanks.
nohup
does), and as can be found in https://unix.stackexchange.com/questions/405755/ , so too is "maintained through the pid parent hierarchy". Tim has already asked about stopped/background processes in many questions such as https://unix.stackexchange.com/questions/490986/ and https://unix.stackexchange.com/questions/396840/ . – JdeBP Jan 04 '19 at 08:53