1VHANGUP(2)                 Linux Programmer's Manual                VHANGUP(2)
2
3
4

NAME

6       vhangup - virtually hangup the current tty
7

SYNOPSIS

9       #include <unistd.h>
10
11       int vhangup(void);
12

DESCRIPTION

14       vhangup()  simulates  a  hangup  on  the  current  terminal.  This call
15       arranges for other users to have a “clean” tty at login time.
16

RETURN VALUE

18       On success, zero is returned.  On error, -1 is returned, and  errno  is
19       set appropriately.
20

ERRORS

22       EPERM  The   calling   process   has  insufficient  privilege  to  call
23              vhangup(); the CAP_SYS_TTY_CONFIG capability is required.
24

CONFORMING TO

26       This call is Linux  specific,  and  should  not  be  used  in  programs
27       intended to be portable.
28

SEE ALSO

30       capabilities(7), init(8)
31
32
33
34Linux 2.6.6                       2004-05-27                        VHANGUP(2)
Impressum