home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9908 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.6 KB  |  41 lines

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