Hi,

At Tue, 29 Jan 2002 06:38:48 +0900,
HarryO <harryo / zipworld.com.au> wrote:
> On Tue, 29 Jan 2002 08:15:05 +1100, Paul Brannan wrote:
> > So a call to setvbuf ought to solve the problem...

Sorry, it didn't look obvious.

At Tue, 29 Jan 2002 04:01:09 +0900,
nobu.nokada / softhome.net wrote:
>     $>.sync = true	# or $defout.sync = true
> >   loop do
> >     puts "This is a test."
> >     sleep 0.01
> >   end

> > but this is only done on open or clone to make the FILE object fully
> > buffered.  It seems there is no way to change this from Ruby... or am I
> > wrong here?

A child process can't know whether the parent expect unbuffered
output or not.

> to cause the buffering to disappear altogether.  I don't know that
> there's an option to explicitly buffer a line at a time, though.

How about setting :line to #sync?

-- 
Nobu Nakada