• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debugging Stdout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Debugging Stdout (From: Ronnie O <email@hidden>)
 >Re: Debugging Stdout (From: Frode <email@hidden>)
 >Re: Debugging Stdout (From: Alastair Houghton <email@hidden>)
 >Re: Debugging Stdout (From: Ronnie O <email@hidden>)

  • Prev by Date: Re: newbie interface problem
  • Next by Date: QTMovieView and HTTP Redirects
  • Previous by thread: Re: Debugging Stdout
  • Next by thread: Re: Debugging Stdout
  • Index(es):
    • Date
    • Thread