Name

detach-controlling-tty — detach a controlling terminal

Synopsis

detach-controlling-tty {next-prog}

Description

detach-controlling-tty 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-tty 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 daemons 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