On Tue, 12 Jul 2005, Peter wrote:
add fflush(stdout); after printf. The buffer is related to the stream stdout. You can turn it of using setvbuf() and friends. Don't do it if you don't have to. The pipes are set up by the shell and may defeat what you are trying to do with flush and setvbuf(). You can also use a fifo (mkfifo) instead of a pipe.
Thanks, that solved the problem. Alon -- This message was sent by Alon Altman ([EMAIL PROTECTED]) ICQ:1366540 GPG public key at http://8ln.org/pubkey.txt Key fingerprint = A670 6C81 19D3 3773 3627 DE14 B44A 50A3 FE06 7F24 -------------------------------------------------------------------------- -=[ Random Fortune ]=- I'm a nuclear submarine under the polar ice cap and I need a Kleenex! ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]