Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jun 1997 14:54:17 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        root@bmccane.uit.net (Wm Brian McCane)
Cc:        msmith@atrad.adelaide.edu.au, straka@inficad.com, bde@zeta.org.au, current@FreeBSD.ORG
Subject:   Re: sio driver performance
Message-ID:  <199706070524.OAA10751@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199706070402.XAA26092@bmccane.uit.net> from Wm Brian McCane at "Jun 6, 97 11:02:10 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Wm Brian McCane stands accused of saying:
> I think Mike is right on this one.  I would suggest adding a select call to 
> your program with a read and exception fd_set.  If the bit gets set in the 
> exception fd_set, close the port and reopen it.  This way you will wait until
> DCD is high before continuing your reads.  It also makes a nice spring-board 
> for when someone asks you to monitor more ports at once.

It's easy enough just to wait for read() to return zero, close and reopen
the device, if that's all you care about.

> 	brian

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706070524.OAA10751>