NAME
tty - controlling terminal
DESCRIPTION
The file /dev/tty is a character file with major number 5 and minor number 0, usually of mode 0666 and owner.group root.tty. It is a synonym for the controlling terminal of a process, if any. In addition to the ioctl(2) requests supported by the device that tty refers to, the ioctl(2) request TIOCNOTTY is supported. TIOCNOTTY Detach the calling process from its controlling terminal. If the process is the session leader, then SIGHUP and SIGCONT signals are sent to the foreground process group and all processes in the current session lose their controlling tty. This ioctl(2) call works only on file descriptors connected to /dev/tty. It is used by daemon processes when they are invoked by a user at a terminal. The process attempts to open /dev/tty. If the open succeeds, it detaches itself from the terminal by using TIOCNOTTY, while if the open fails, it is obviously not attached to a terminal and does not need to detach itself.
FILES
/dev/tty
SEE ALSO
chown(1), mknod(1), ioctl(2), termios(3), console_ioctl(4), tty_ioctl(4), ttyS(4), agetty(8), mingetty(8)
COLOPHON
This page is part of release 4.09 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
More Linux Commands
manpages/btrfs-image.8.html
btrfs-image(8) create restore an image of the filesystem....
btrfs-image is used to create an image of a btrfs filesystem. All data will be zeroed, but metadata and the like is preserved. Mainly used for debug purpose. OP
manpages/Tk_SetInternalBorderEx.3.html
Tk_SetInternalBorderEx(3) - specify desired geometry or inte
Tk_GeometryRequest is called by widget code to indicate its preference for the dimensions of a particular window. The arguments to Tk_GeometryRequest are made a
manpages/erb.ruby2.1.1.html
erb.ruby2.1(1) Ruby Templating (Commands - Linux man page)
erb is a command line front-end for ERB library, which is an implementation of eRuby. ERB provides an easy to use but powerful templating system for Ruby. Using
manpages/wattr_off.3ncurses.html
wattr_off(3ncurses) - curses character and window attribute
These routines manipulate the current attributes of the named window. The current attributes of a window apply to all characters that are written into the windo
manpages/Tcl_PrintDouble.3.html
Tcl_PrintDouble(3) - Convert floating value to string.......
Tcl_PrintDouble generates a string that represents the value of value and stores it in memory at the location given by dst. It uses %g format to generate the st
manpages/lround.3.html
lround(3) - round to nearest integer, away from zero........
These functions round their argument to the nearest integer value, rounding away from zero, regardless of the current rounding direction (see fenv(3)). Note tha
manpages/mdmon.8.html
mdmon(8) - monitor MD external metadata arrays (Man Page)...
Metadata updates: To service metadata update requests a daemon, mdmon, is introduced. Mdmon is tasked with polling the sysfs namespace looking for changes in ar
manpages/Tcl_CreateEnsemble.3.html
Tcl_CreateEnsemble(3) - manipulate ensemble commands........
An ensemble is a command, bound to some namespace, which consists of a collection of subcommands implemented by other Tcl commands. The first argument to the en
manpages/crypt_gensalt_ra.3.html
crypt_gensalt_ra(3) - password hashing - Linux manual page
The crypt, crypt_r, crypt_rn, and crypt_ra functions calculate a cryptographic hash function of key with one of a number of supported methods as requested with
manpages/XkbAddDeviceLedInfo.3.html
XkbAddDeviceLedInfo(3) - Initialize an XkbDeviceLedInfoRec s
XkbAddDeviceLedInfo first checks to see whether an entry matching led_class and led_id already exists in the device_info->leds array. If it finds a matching ent
manpages/fallocate.2.html
fallocate(2) - manipulate file space - Linux manual page....
This is a nonportable, Linux-specific system call. For the portable, POSIX.1-specified method of ensuring that space is allocated for a file, see posix_fallocat
manpages/fileno.3.html
fileno(3) - check and reset stream status - Linux man page
The function clearerr() clears the end-of-file and error indicators for the stream pointed to by stream. The function feof() tests the end-of-file indicator for
