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