detach-controlling-terminal 1 user commands nosh
detach-controlling-tty detach a controlling terminal
`detach-controlling-terminal` next-prog

## Description

`detach-controlling-terminal` is a chain-loading utility that attempts to detach itself from its controlling terminal, and then chain loads to next-prog with the execvp 3 function.

next-prog may contain its own command line options, which `detach-controlling-terminal` will ignore.

## Security

This must not be used for attempting to "daemonize" programs run from within a login session. A large amount of other state from the login session is still retained, including login session state that cannot be dropped once set and state that renders dæmons vulnerable to control from the login session. The use case for this tool is where one is allowing next-prog to open a different controlling terminal.

## Author

Jonathan de Boyne Pollard