1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\" Fri Apr 2 11:32:09 MET DST 1993
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
7 .\" Modified 2003-04-07 by Michael Kerrisk
9 .TH TTY 4 2019-03-06 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
11 tty \- controlling terminal
15 is a character file with major number 5 and
16 minor number 0, usually with mode 0666 and ownership root:tty.
17 It is a synonym for the controlling terminal of a process, if any.
21 requests supported by the device that
29 Detach the calling process from its controlling terminal.
31 If the process is the session leader,
36 signals are sent to the foreground process group
37 and all processes in the current session lose their controlling tty.
41 call works only on file descriptors connected
44 It is used by daemon processes when they are invoked
45 by a user at a terminal.
46 The process attempts to open
48 If the open succeeds, it
49 detaches itself from the terminal by using
52 open fails, it is obviously not attached to a terminal and does not need
60 .BR ioctl_console (2),