• 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 child process buffering.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and child process buffering.


  • Subject: Re: NSTask and child process buffering.
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 21 Feb 2002 15:34:03 +0100

Chris,

>>>>>> Chris Gehlker (CG) wrote at Wed, 20 Feb 2002 22:35:23 -0700:
CG> So far there is nothing mysterious. By IDE is blocking because Ruby
CG> hasn't flushed it's buffers. Where it gets mysterious is that few Ruby
CG> programs bother with the flush and they work from the command line.

It's not that mysterious, I guess. I dunno Ruby, but I presume it uses
stdio, does it not?

Well, stdio AFAIK automatically flushes line-wise when the output goes into
a terminal, and does not otherwise. That's all.

CG> So my question is "How does tcsh get child processes to turn off
CG> buffering

It does not, it's the other way round: the child process checks whether it
prints into a terminal (tcsh has nothing to do with that particularly), and
behaves accordingly.

CG> and how do I replicate that in an NSTask?

You have to fake being a terminal. Though, I am afraid I don't know how to
-- I've never needed that myself :(
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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 child process buffering.
      • From: Sherm Pendley <email@hidden>
    • Re: NSTask and child process buffering.
      • From: Chris Gehlker <email@hidden>
References: 
 >NSTask and child process buffering. (From: Chris Gehlker <email@hidden>)

  • Prev by Date: Re: Cocoa, Java vs. Objective-C
  • Next by Date: Re: Please explain this error message...
  • Previous by thread: NSTask and child process buffering.
  • Next by thread: Re: NSTask and child process buffering.
  • Index(es):
    • Date
    • Thread