1 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
26 .\" Added notes on capability requirements
28 .TH VHANGUP 2 2021-03-22 "Linux" "Linux Programmer's Manual"
30 vhangup \- virtually hangup the current terminal
33 .B #include <unistd.h>
39 Feature Test Macro Requirements for glibc (see
40 .BR feature_test_macros (7)):
46 .\" commit 266865c0e7b79d4196e2cc393693463f03c90bd8
48 In glibc 2.19 and 2.20:
49 _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
50 Up to and including glibc 2.19:
51 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
55 simulates a hangup on the current terminal.
56 This call arranges for other
57 users to have a \*(lqclean\*(rq terminal at login time.
59 On success, zero is returned.
60 On error, \-1 is returned, and
62 is set to indicate the error.
66 The calling process has insufficient privilege to call
70 capability is required.
72 This call is Linux-specific, and should not be used in programs
73 intended to be portable.