Re: Getting last data from child process in Leopard
Re: Getting last data from child process in Leopard
- Subject: Re: Getting last data from child process in Leopard
- From: Chris Ridd <email@hidden>
- Date: Wed, 26 Mar 2008 18:06:45 +0000
On 26 Mar 2008, at 17:18, Steve Checkoway wrote:
I did that because stdio functions like fwrite() and printf() do not
flush. Actually, printf() flushes when it encounters \n as it turns
out, but I don't know if that is behavior you want to depend on. I
could have used write() instead which wouldn't have been buffered.
You should be able to change the stream's line-buffering behaviour
with setvbuf().
Cheers,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden