bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: term & user space console


From: Marcus Brinkmann
Subject: Re: term & user space console
Date: Thu, 31 Jan 2002 20:45:15 +0100
User-agent: Mutt/1.3.27i

On Thu, Jan 31, 2002 at 02:11:23PM -0500, Roland McGrath wrote:
> > Do I use a third thread for assert_dtr?  If I need to assert the dtr, the
> > only strategy I can think of is to open in blocking mode.  However, if I use
> > synchronous RPC, this is better done in a seperate thread.  I don't know how
> > to assert the dtr otherwise.
> 
> You don't need an additional thread, because you are never reading or
> writing while keeping DTR low (you can't, since the way you keep DTR low is
> to close the terminal).

Sorry, I was not clear in my earlier reply.  I was assuming that I would
keep the ioport open even after deserting the DTR, but deallocating it is
also a good idea.  To do it cleanly, I think I will have to interrupt the
reader and writer rpcs if necessary, so I don't need to rely on the error
value (EMIG_SERVER_DIED or so) to find out what happened.

Mmmh.  I will have to think a bit longer about this.  The good news is that
the exact way how the open is done (incl the dtr handling) and setting the
modem bits is the only thing that is missing, then I can start to test it.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]