📄 vhangup.2
字号:
.\" SCCSID: @(#)vhangup.2 8.2 1/28/91.TH vhangup 2.SH Namevhangup \- virtually hang up the current control terminal.SH Syntax.B void vhangup\|(\|).SH Description.NXR "vhangup system call".NXR "terminal" "revoking access"The.PN vhangupsystem call initializes a terminal line. For example, the .PN init command uses.PN vhangupto ensure that the previous user's processes cannot access theterminal anymore..PPFirst,.PN vhangupsearches the system tables for references to the currentterminal (the control terminalof the invoking process) and revokes access permissionson each instance of the terminal that it finds..PPThe.PN vhangupsystem callalso removes all references to the inode that corresponds to thecontrol terminal. The.PN vhangup system callthen invokes the kernel's device close routine to turnthe terminal off.Finally,.PN vhangupsends a hangup signal (SIGHUP) to the process groupof the control terminal. For further information, see.MS tty 4for a description of process groups..PPWhen.PN vhangupfinishes, a terminal line is initialized; no other processes refer to this line.The only way for other processes to access the control terminal is through the special file,.PN /dev/tty .All other requests will yield I/O errors (EBADF)..SH See Alsoinit(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -