Re: NSTask and child process buffering.
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.