Bug #2377 » sysread.diff
| io.c (working copy) | ||
|---|---|---|
|  *     r, w = IO.pipe | ||
|  *     r.eof?  # blocks forever | ||
|  * | ||
|  *  Note that <code>IO#eof?</code> reads data to a input buffer. | ||
|  *  So <code>IO#sysread</code> doesn't work with <code>IO#eof?</code>. | ||
|  *  Note that <code>IO#eof?</code> reads data to the input buffer. | ||
|  *  So <code>IO#sysread</code> only works with <code>IO#eof?</code> | ||
|  *  if you call <code>IO#rewind</code> first. | ||
|  */ | ||
| VALUE | ||