Atsushi Murai 38c50f39a0 Fixing follows and John's fruent explnation than my English....
The first problem I found was that descriptor 0 was being closed.
This happens because the modem variable is set to 0 to indicate
that it is not valid but there are not enough tests for the modem
variable being 0.  You can see where I have done this in the patch.
Code in OpenModem() dups the modem descriptor if it is < 3.  Once
this happened the modem was always open and an incomming call would
have getty and ppp reading the modem.

Descriptor 1 is closed when the quit command was executed from a
telnet connection.  The next modem open returns descriptor 1
and this gets duped leaving the modem always open again.

The modem was not being closed when the connection dropped or was
closed from the other end.  The UUCP lock was also not removed if
the modem could not be opened.

Reviewed by:	Atsushi Murai <amurai@spec.co.jp>
Submitted by:	John Capo <jc@irbs.com>
1995-04-16 13:38:39 +00:00
..
1995-04-09 03:34:10 +00:00
1995-03-29 06:13:08 +00:00
1995-04-06 14:41:50 +00:00
1995-02-15 17:33:04 +00:00
1995-02-10 03:12:42 +00:00
1995-04-08 16:04:22 +00:00
1995-03-09 21:53:12 +00:00
1995-02-27 19:48:19 +00:00