*BSD News Article 32658


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!warrane.connect.com.au!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD: Kermit - set line /dev/tty00 hangs
Date: 12 Jul 1994 18:21:11 +1000
Organization: Kralizec Dialup Unix Sydney - +61-2-837-1183, v.32bis v.42bis
Lines: 23
Message-ID: <2vtjpo$2e8@kralizec.zeta.org.au>
References: <MATHEZER.94Jul10130217@fsj.cpsc.ucalgary.ca>
NNTP-Posting-Host: kralizec.zeta.org.au

In article <MATHEZER.94Jul10130217@fsj.cpsc.ucalgary.ca>,
Stephen Mathezer <mathezer@cpsc.ucalgary.ca> wrote:
>
>With FreeBSD 1.1.5.1, I am trying to use Kermit to set up my SLIP
>and/or PPP lines and therefore want to run it out of a script.  The
>problem is that 'set line /dev/tty00' sort of hangs kermit.  Depending

This is caused by a bug in the kermit port and a feature (?) in the
FreeBSD driver.  First, kermit doesn't turn on the CLOCAL flag as
early as it should for BSD44-POSIX systems.  Then kermit reopens and
closes /dev/tty0 to work around a bug in certain ancient systems.
The port is already open (it was opened in nonblocking mode) but the
reopen is in blocking mode and blocks waiting for carrier.

This is said to be fixed in the version of kermit in FreeBSD/ports.

>I had no problems with this under netBSD with the same hardware
>configuration.  Why can't I do it under FreeBSD????

Perhaps the reopen doesn't block under NetBSD, or the CLOCAL flag is
set by default, or the kermit port is different, or...
-- 
Bruce Evans  bde@kralizec.zeta.org.au