gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheriting more file descriptors to NSTask


From: Richard Frith-Macdonald
Subject: Re: Inheriting more file descriptors to NSTask
Date: Mon, 7 Mar 2011 15:42:46 +0000

On 6 Mar 2011, at 21:59, Banlu Kemiyatorn wrote:

> Hi, is it possible to pipe to fd 3,4,5 etc on NSTask? Some tools like
> ImageMagick can open fd 3 4 5... though -launch close them. What would
> be the best way to pipe to them? I am looking for a kind of official
> support as I am avoiding cut & paste beloved lgpl code into my
> project.

In a word, no.

NSTask is supposed to close all handled other than 0, 1 and 2 and the API 
provides no way to modify that.

Depending on what you are trying to do, you might redirect other decriptors to 
one of those, or you might try using named pipes to communicate between 
processes.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]