Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting last data from child process in Leopard




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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Getting last data from child process in Leopard (From: Ingemar Ragnemalm <email@hidden>)
 >Re: Getting last data from child process in Leopard (From: "Jordan K. Hubbard" <email@hidden>)
 >Re: Getting last data from child process in Leopard (From: Ingemar Ragnemalm <email@hidden>)
 >Re: Getting last data from child process in Leopard (From: Steve Checkoway <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.