Re: sharing file descriptors to an NSTask
Re: sharing file descriptors to an NSTask
- Subject: Re: sharing file descriptors to an NSTask
- From: Dave Keck <email@hidden>
- Date: Wed, 1 Sep 2010 04:20:39 -0400
> descriptors are open. On OS X, you could read the contents of /dev/fd/
> to accomplish the same thing. It appears that NSTask uses the uglier
> getdbtablesize() loop though.
Neat, I wasn't aware of /dev/fd. Are the necessary APIs
async-signal-safe so they can be used between fork()/exec()?
Apparently getdbtablesize() isn't even documented as being so; in the
strictest sense then, I guess you'd have to use you'd have to use
INT_MAX. Hah.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden