|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
TTY(4) Linux Programmer's Manual TTY(4)
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 syn-
onym for the controlling terminal of a process, if any.
In addition to the ioctl() requests supported by the device that tty
refers to, the ioctl() request TIOCNOTTY is supported.
TIOCNOTTY
Detach the current 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 cur-
rent session lose their controlling tty.
This ioctl() call only works 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), getty(1), mknod(1), ioctl(2), termios(3), console(4), ttyS(4)
Linux 2003-04-07 TTY(4)
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Tue Feb 13 02:21:48 GMT 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
sqlite3 man page (5323 hits) (openSUSE 10.2)
svn man page (5171 hits) (FreeBSD 6.2)
adv_cap_autoneg man page (4865 hits) (Solaris 10 11_06)
CPAN man page (4602 hits) (Suse Linux 10.1)
ssh man page (4337 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (2841 hits) (Solaris 10 11_06)
netcat man page (2688 hits) (Suse Linux 10.1)
pprosetup man page (2473 hits) (Solaris 10 11_06)
startproc man page (2453 hits) (Suse Linux 10.1)
signal man page (2393 hits) (Suse Linux 10.1)
|