*BSD News Article 18637


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!sequoia!ultima!kralizec.zeta.org.au!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.questions
Subject: Re: sio - problem with login hanging up
Date: 20 Jul 1993 04:34:08 +1000
Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32bis
Lines: 27
Message-ID: <22epf0INNt7q@kralizec.zeta.org.au>
References: <1993Jul12.075230.13102@cnplss5.cnps.philips.nl> <CA2HDw.FDp@sugar.NeoSoft.COM> <226elvINNt54@kralizec.zeta.org.au> <CADpLy.8Dw@sugar.NeoSoft.COM>
NNTP-Posting-Host: kralizec.zeta.org.au

In <CADpLy.8Dw@sugar.NeoSoft.COM> peter@NeoSoft.com (Peter da Silva) writes:

>In article <226elvINNt54@kralizec.zeta.org.au> bde@kralizec.zeta.org.au (Bruce Evans) writes:
>> work around using "stty -clocal </dev/sioNN" in /etc/rc.

>This shouldn't work. When stty closes the port, it should revert to the
>default configuration.

Because it is the last close?  The old driver didn't do that.  Both
drivers only set the default configuration when they are opened with
an ispeed of 0.

>> However,
>> there may be problems later if a user sets clocal and hangs up,

>And this is a symptom of that bug.

These problems are easy to fix by having a parent process (e.g. init)
restore the previous state.

Perhaps the problem of having a bad configuration when a port is opened
could be solved by not fully opening the port until the first read or
write on it (keep DTR etc. low).  That makes it possible to set the
port to a good state using ioctl before the other side starts talking
to you at the wrong speed.
-- 
Bruce Evans  bde@kralizec.zeta.org.au