sharing file descriptors to an NSTask
sharing file descriptors to an NSTask
- Subject: sharing file descriptors to an NSTask
- From: Scott Ribe <email@hidden>
- Date: Tue, 31 Aug 2010 20:08:27 -0600
Is there any way to have a process launched via NSTask access file descriptors opened in the parent process? Other than stdin, stdout & stderr.
It looks to me like the NSTask launching machinery may close descriptors, and I don't see a way to control that. The descriptors in question do return 0 from fcntl(desc, F_GETFD...). At least, when I try to write to one from the child process, I get EBADF.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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