Re: Debugging Stdout
Re: Debugging Stdout
- Subject: Re: Debugging Stdout
- From: Sherm Pendley <email@hidden>
- Date: Tue, 4 Oct 2005 20:20:06 -0400
On Oct 4, 2005, at 7:27 PM, Ronnie O wrote:
1) I had already included this:
[environment setObject:@"YES" forKey:@"NSUnbufferedIO"];
[task setEnvironment:environment];
So should this take care of any buffering issues by the c program?
That would take care of buffering in the *parent* program. The child
might still be doing its own buffering. Did you turn off buffering in
the Perl program, with this?
$| = 1;
You could try doing something similar in your C app to disable
buffering on stdout:
setbuf(stdout, NULL);
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden