home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!caen!sdawson
- From: sdawson@limbo.engin.umich.edu (Scott Dawson)
- Subject: vhangup() (or equivalent) call in HPUX?
- Message-ID: <DQl-rc-@engin.umich.edu>
- Date: Mon, 31 Aug 92 19:23:17 EDT
- Organization: University of Michigan Engineering, Ann Arbor
- Originator: sdawson@limbo.engin.umich.edu
- Nntp-Posting-Host: limbo.engin.umich.edu
- Lines: 29
-
-
- I have code for rlogind which I am trying to port to an hp9000/7xx
- machine running 8.07. This code tries to do a vhangup() which
- according should, according to the manpage on a DECstation 5000, do
- the following:
-
- 1. Search system tables for references to the current terminal and
- revoke access permissions on each instances it finds.
- 2. Remove all references to the inode which corresponds to the
- control terminal.
- 3. Invoke the kernel's device close routine to turn the terminal off.
- 4. SIGHUP the process group of the control terminal.
-
- When this is done the terminal line is initialized, no other processes
- refer to the line. The only way for other processes to access the
- control terminal is through special file /dev/tty. All other requests
- will yield I/O errors (EBADF).
-
- Does anyone know of a similar call in HPUX, or know what HPUX telnetd
- and rlogind use to get clean/secure terminal with no open descriptors
- to it? The closest I can get is hanging up the terminal by setting the
- output speed to 0. This wouldn't accomplish any of the revoking access
- stuff. It would certainly seem that there would be something similar,
- but I can't find references to it anywhere.
-
- Please respond in email to sdawson@engin.umich.edu
-
- Thanks in advance,
- -Scott Dawson
-