Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vhangup(8) [opendarwin man page]

VHANGUP(8)						       The SuSE boot concept							VHANGUP(8)

Vhangup - Cause a virtually hangup on the specified terminals SYNOPSIS
vhangup [/dev/<terminal> [/dev/<terminal>]] DESCRIPTION
vhangup simulates a hangup on the specified terminals. Not existing device files or devices will be ignored. EXAMPLES
vhangup /dev/tty1 /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6 /dev/ttyS1 This will replace all open file descriptors in the kernel that points to the listed ttys by a dummy that will deny further reading/writing to the device. It also send the signals SIGHUP/SIGCONT to the processes which have file descriptors open on the listed ttys. RETURN VALUE
On success, zero is returned. On error, 1 is returned. SEE ALSO
vhangup(2), tty(4), ttyS(4), pts(4). COPYRIGHT
2008 Werner Fink, 2008 SUSE LINUX Products GmbH, Germany. AUTHOR
Werner Fink <> 3rd Berkeley Distribution Jan 31, 2008 VHANGUP(8)

Check Out this Related Man Page

VHANGUP(2)						     Linux Programmer's Manual							VHANGUP(2)

vhangup - virtually hangup the current tty SYNOPSIS
#include <unistd.h> int vhangup(void); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): vhangup(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) DESCRIPTION
vhangup() simulates a hangup on the current terminal. This call arranges for other users to have a "clean" tty at login time. RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS
EPERM The calling process has insufficient privilege to call vhangup(); the CAP_SYS_TTY_CONFIG capability is required. CONFORMING TO
This call is Linux-specific, and should not be used in programs intended to be portable. SEE ALSO
capabilities(7), init(8) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at Linux 2007-07-26 VHANGUP(2)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: ␀␀Word Finder® Plus™. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word Finder® Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies

Featured Tech Videos