home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22094 < prev    next >
Encoding:
Text File  |  1992-12-29  |  2.3 KB  |  59 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!ivgate!beeble!tdavis
  3. From: tdavis@beeble.omahug.org (Thomas Davis)
  4. Subject: Re: What logs off?
  5. References: <Bzu94t.Gtx@nmrdc1.nmrdc.nnmc.navy.mil> <BzvxEC.7sz@citrus.SAC.CA.US> <1992Dec27.113831.4773@klaava.Helsinki.FI>
  6. Organization: Beeble Planning Commission
  7. Date: Mon, 28 Dec 1992 19:03:30 GMT
  8. Message-ID: <BzzGxu.3BK@beeble.omahug.org>
  9. Lines: 48
  10.  
  11. torvalds@klaava.Helsinki.FI (Linus Torvalds) writes:
  12.  
  13. >In article <BzvxEC.7sz@citrus.SAC.CA.US> qumqats@citrus.SAC.CA.US ( Joel M. Baldwin ) writes:
  14. >>
  15. >>I have to echo this question.  I'm running SLS 0.98pl1 with the
  16. >>0.98.pl4 kernel and I've noticed that if someone just hangs up
  17. >>without logoff then they're >NOT< logged off.  It looks like the
  18. >>controling process is terminated, but if they're in a child process
  19. >>then the parent is just left hanging.
  20. >>
  21. >>Is this a bug in the kernel or in init or what?
  22. >>
  23. >>I consider it a pretty serious problem for a public access system to not
  24. >>have a user logged off when they hang up the phone for whatever reason!
  25.  
  26. [deleted text]
  27.  
  28. >You should also make sure that
  29. > - the tty should have the CLOCAL flag cleared (CLOCAL is used to
  30. >   indicate that you are running a local serial line without hangup
  31. >   detection). 
  32. > - your modem is set up correctly to drop DCD when carrier is lost. 
  33.  
  34. Also, I've set my modem to reset/hangup when DTR is dropped..  This makes
  35. damn sure the modem hangs up, and returns to a know state..
  36.  
  37. >Additionally, for extra safety you can use a 'login' binary that does a
  38. >vhangup() when a new person logs in: that will kill any pending
  39. >processes on that tty. 
  40.  
  41. And because of the previous, my modem now hangs up when ever somebody
  42. logins over the phone line (I actually edited the source to not do it..)
  43.  
  44. Before you say "well, don't let the modem hang up when DTR is dropped!",
  45. remember, I've set this config up on SunOS, and it worked..
  46.  
  47. I guess I'm looking for a way for vhangup() to work without dropping dtr
  48. (I've looked at the serial drivers..  They have changed some since I've
  49. last worked on them..  (It's great to see some of the stuff I did still around
  50. though..))
  51.  
  52. Any suggestions?  I'm open for ideas..
  53.  
  54. -- 
  55. Thomas Davis, ECNE        | Internet:    tdavis@beeble.omahug.org
  56. Systems Engineer,        | UUCP:        uunet!ivgate!beeble!tdavis
  57. Huntel Communications, Inc.    | Snail Mail:    8803 Webster Plaza
  58. Omaha, NE            |        Omaha, NE 68114
  59.