home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / wizards / 3280 < prev    next >
Encoding:
Text File  |  1992-07-22  |  2.5 KB  |  57 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!newsun!gateway.novell.com!terry
  3. From: terry@npd.Novell.COM (Terry Lambert)
  4. Subject: Re: process-usage after ctrl-alt-del
  5. Message-ID: <1992Jul22.230205.10831@gateway.novell.com>
  6. Sender: news@gateway.novell.com (NetNews)
  7. Nntp-Posting-Host: thisbe.eng.sandy.novell.com
  8. Organization: Novell NPD -- Sandy, UT
  9. References: <31497@adm.brl.mil>
  10. Date: Wed, 22 Jul 1992 23:02:05 GMT
  11. Lines: 44
  12.  
  13. In article <31497@adm.brl.mil> bosscha@rc7.nhl.nl (Freerk J. Bosscha) writes:
  14. >Hello,
  15. >
  16. >Is there anywhone who could send me a possible solution off the following
  17. >problem.
  18. >
  19. >We use MS-DOS pc's with kermit as terminal-emulater to login on an SCO-UNIX
  20. >box. 
  21. >There is no problem if the user normaly terminate a session. But if he, as
  22. >good old DOS user stops with <CTRL>-<ALT>-<DEL> the session still keep op
  23. >running and sometimes use cpu-time. If a process keeps on consuming cpu-time
  24. >it will NOT be killed after a certain idle time.
  25. >Does anywhone know a way such a user can be allocated and then killed.
  26.  
  27. Set your SCO up correctly, so that HUPCL is set and CLOCAL isn't; user
  28. processes will be sent a SIGHUP on the on-to-off carrier transition caused
  29. by the reset of the PC.  When reset, it will drop carrier, at least for a
  30. few seconds.  If it doesn't, buy a $15 com card that will.  This will
  31. end up putting a getty on the port, whose open (and subsequent diplay of a
  32. "login:" prompt) will be blocked until DCD goes high again.
  33.  
  34. Most PC com cards have terminal gender, and, as such, will provide DTR,
  35. which you should wire to the UNIX DCD input.
  36.  
  37. The same trick will work for regular terminals that get switched off.
  38.  
  39. In SCO UNIX, there is a tendency to have multiple entry points for a device;
  40. for instance, if you are using the built in serial port, make sure the getty
  41. is running on tty1A rather than tty1a -- this will ensure that modem control
  42. is observed.  If you are using a multiport board, look in the manual or
  43. contact the manufacturer for info on how to get a modem control port.
  44. Remember that there are some flavors of multiport board where support is
  45. optional for modem control, and depends on which HW you buy.  For instance,
  46. there are modem control and non-modem control versions of the DigiBoard
  47. and Altos multi-drop boxes, as well as version of both for terminal servers
  48. like the DecServer 100 (100 and 100-mc).
  49.  
  50.  
  51.                     Terry Lambert
  52.                     terry_lambert@gateway.novell.com
  53.                     terry@icarus.weber.edu
  54. ---
  55. Disclaimer:  Any opinions in this posting are my own and not those of
  56. my present or previous employers.
  57.