From: matz@... (Yukihiro Matsumoto) Date: 2003-01-07T03:59:38+09:00 Subject: Re: Bug when using Kernel.fork with File.print Hi, In message "Bug when using Kernel.fork with File.print" on 03/01/07, Ralf Papenkordt writes: |the following stripped down script prints one time "hello" to |stdout but four times to testfile which IMHO is not correct: This is not really a bug (but I admit it's surprising result). It's caused by stdio behavior along with fork. Fork creates copy of the parent process. Each child process you've forked has copy of the output buffer attached to aFile. stdio library flushes output buffers that remain opened. Thus, stdio flushed "hello\n" for each copy of aFile output buffer. matz.