On Sat, 17 Sep 2005, Austin Ziegler wrote:

> On 9/16/05, Ara.T.Howard <Ara.T.Howard / noaa.gov> wrote:
>> any way to send EOF down a pipe/io object in a portable fashion?  i want to
>> signal EOF to another process w/o closing/reopen.
>
> Design your own?
>
> EOF as a marker character is a convention on Unix (usually Ctrl-D, but
> mostly interpreted by the shells, etc.) and is a convention on Win32
> when the file is opened in ASCII mode (e.g., 'w', not 'wb').
>
> Better to make it so that you've got an explicit EOF marker yourself.


but what?  the input/output can be arbitraily long binary data so no chars
will work methinks.  my understanding is that you can't send eof on *nix -
only a close will do.  but ruby has no clearerr... ;-(

cheers.

-a
-- 
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze.  --Nagarjuna
===============================================================================