1 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
6 .\" Added notes on capability requirements
8 .TH VHANGUP 2 2022-09-09 "Linux man-pages (unreleased)"
10 vhangup \- virtually hangup the current terminal
13 .RI ( libc ", " \-lc )
16 .B #include <unistd.h>
22 Feature Test Macro Requirements for glibc (see
23 .BR feature_test_macros (7)):
29 .\" commit 266865c0e7b79d4196e2cc393693463f03c90bd8
31 In glibc 2.19 and 2.20:
32 _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
33 Up to and including glibc 2.19:
34 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
38 simulates a hangup on the current terminal.
39 This call arranges for other
40 users to have a \*(lqclean\*(rq terminal at login time.
42 On success, zero is returned.
43 On error, \-1 is returned, and
45 is set to indicate the error.
49 The calling process has insufficient privilege to call
53 capability is required.
55 This call is Linux-specific, and should not be used in programs
56 intended to be portable.