Sysread for buffered IO (IOError)

i’m experimenting with using non-blocking io and sysread/write for me session
package. i keep getting i’m experimenting with using non-blocking io and
sysread/write for me session package. i keep getting

sysread for buffered IO (IOError)

but am doing NO non-buffered operations on the io object… in fact, it’s
wrapped in a class that has all methods defined in terms of syswrite/read.
the only possible exception to this is a call to select which cannot take the
wrapped objects and must use the underlying io objects directly… is it o.k.
to mix select with syswrite/read or could this be the problem?

-a

···

EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
URL :: Solar-Terrestrial Physics Data | NCEI
TRY :: for l in ruby perl;do $l -e “print "\x3a\x2d\x29\x0a"”;done
===============================================================================

In article Pine.LNX.4.44.0403261239001.15530-100000@fattire.ngdc.noaa.gov,
“Ara.T.Howard” Ara.T.Howard@noaa.gov writes:

sysread for buffered IO (IOError)

but am doing NO non-buffered operations on the io object… in fact, it’s
wrapped in a class that has all methods defined in terms of syswrite/read.
the only possible exception to this is a call to select which cannot take the
wrapped objects and must use the underlying io objects directly… is it o.k.
to mix select with syswrite/read or could this be the problem?

select should not be a problem.
IO#read is a bufferd IO operation.

···


Tanaka Akira