Date: Sun, 23 Jul 1995 06:59:08 +0400 (MSD) From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka "Andrey A. Chernov, Black Mage" <ache@astral.msk.su> To: hackers@freebsd.org, "Jordan K. Hubbard" <jkh@violet.berkeley.edu> Cc: Bruce Evans <bde@zeta.org.au>, harry@hgac.com Subject: Re: dial up at > 9600 baud Message-ID: <pWyhR4m4e2@astral.msk.su> In-Reply-To: <199507230131.SAA22081@violet.berkeley.edu>; from "Jordan K. Hubbard" at Sat, 22 Jul 1995 18:31:45 -0700 References: <199507230131.SAA22081@violet.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <harry-1807952115390001@hgac.hgac.com>, harry@hgac.com (Harry Goldschmitt) wrote: >PPP always connected at 9600 baud. Found that in getty.c the open() function >blocks until carrier detected. This happens before the port is set up using >the getty args. Changed getty to use non-blocking open(), then fall through >to set up the port with getty args, and then wait for carrier using ioctl() >similar to slattach. See attached diff file for getty.c in FreeBSD 2.0.5. I don't think, that waiting for carrier is right way. Better way will be to open device as non-blocked, then setup all tty flags (incl. speed), then reopen device in blocked mode just before reading anything. BTW, Bruce, is it possible now to switch to blocked mode without reopening? -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?pWyhR4m4e2>