• 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: NSTask and avoiding buffered standard out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and avoiding buffered standard out


  • Subject: Re: NSTask and avoiding buffered standard out
  • From: Jim Correia <email@hidden>
  • Date: Wed, 14 Aug 2002 13:58:53 -0400

On Wednesday, August 14, 2002, at 01:43 PM, Ingvar Nedrebo wrote:

The setvbuf call needs to be in the client tool, your "std-test".

Is this true even if I do a setvbuf after the fork (in the child) but before the exec?

Is there a way to avoid this buffering without writing a pseudo tty
(which is ugly and not something I want to do if I can avoid it.)

If you control the tool you can call setvbuf in the tool. If you don't have access to the source, then pseudo TTYs are your only choice. I have some code at <http://homepage.mac.com/inedrebo> that you can use if you like.

Thanks. I'll take a look.


Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTask and avoiding buffered standard out
      • From: Ingvar Nedrebo <email@hidden>
References: 
 >Re: NSTask and avoiding buffered standard out (From: Ingvar Nedrebo <email@hidden>)

  • Prev by Date: Re: NSTask and avoiding buffered standard out
  • Next by Date: Re: NSRunLoop question
  • Previous by thread: Re: NSTask and avoiding buffered standard out
  • Next by thread: Re: NSTask and avoiding buffered standard out
  • Index(es):
    • Date
    • Thread