Can a (non-)controlling process detach its controlling terminal by closing its file descriptor?
1
vote
2
answers
314
views
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.
Asked by Tim
(106420 rep)
Jan 4, 2019, 03:19 AM
Last activity: Nov 19, 2021, 02:13 PM
Last activity: Nov 19, 2021, 02:13 PM