>> On Fri, May 19, 2000 at 12:00:21PM -0500, Al Borchers wrote:
>>>
>>> Our driver has a problem with select--select reports our device is ready
>>> for writing, but write sometimes returns -EAGAIN.

My immediate reaction is that select() should not be used on serial
ports.  There are other options using the basic serial driver without
the additional overhead inherant in the more complex select()
function.

The usual driver solution is to use VTIME/VMIN settings.  These are
explained in the HOWTO included in my 'serial_suite'.  This is a
collection of blurbs about the care and feeding of the serial ports
and some simple programs.  There is a file demonstrating how the lock
files should be programmed. There is a simple getty, a dialer for ppp
connections and some other misc programs.

Via ftp:

ftp scicom.alphacdc.com

Login as "anonymous" then use your full e-mail address as the password.
For me, that is '[EMAIL PROTECTED]'.

cd pub/linux

or:

URL ftp://scicom.alphacdc.com/pub/linux

The select() function is part of the 'sockets()' suite and must be
used in that type application.  I have no proof that VTIME/VMIN are
faster.  Does anyone have any knowledge about the comparison?  The
only advantage of select() that I can imagine is that it is simpler.

vern

-- 
Vernon C. Hoxie                                     [EMAIL PROTECTED]
3975 W. 29th Ave.                                        uucp: 303-455-2670
Denver, Colo., 80212                                    voice: 303-477-1780
            Hard work will not kill you, but why take chances?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to