*BSD News Article 18933


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!olivea!uunet!emba-news.uvm.edu!wollman
From: wollman@UVM.EDU (Garrett Wollman)
Subject: Re: sio - problem with login hanging up
Message-ID: <1993Jul27.190228.22230@emba.uvm.edu>
Sender: news@emba.uvm.edu
Organization: University of Vermont, EMBA Computer Facility
References: <22mg9nINNlud@kralizec.zeta.org.au> <22s698INNdf3@kralizec.zeta.org.au> <CAq3uA.9nx@sugar.NeoSoft.COM> <231ka4INNrkf@kralizec.zeta.org.au>
Date: Tue, 27 Jul 1993 19:02:28 GMT
Lines: 28

In article <231ka4INNrkf@kralizec.zeta.org.au>,
Bruce Evans <bde@kralizec.zeta.org.au> wrote:
>No problem, I think.  You have to avoid the last close on the port or the
>connection will be dropped (unless clocal is used).  This may be done by
>starting slattach from inside another program that has the port open.
>slattach forks and holds the connection open in its child process, so
>the other program can be exited.

I don't know why nobody seems to have thought of this:

exec 3>/dev/ttyxx
stty clocal </dev/ttyxx
connection_program /dev/ttyxx grimble blat
slattach blah /dev/ttyxx blah
exec 3>&-

>One way to avoid these problems
>without kludges is to hold the port open in another program.

You mean, like the shell?

-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance.
uvm-gen!wollman      | It is a bond more powerful than absence.  We like people
UVM disagrees.       | who like Shashish.  - Claude McKenzie + Florent Vollant