• 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
sharing file descriptors to an NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: sharing file descriptors to an NSTask
      • From: Dave Keck <email@hidden>
  • Prev by Date: Re: core data issues iOS 4.0.2
  • Next by Date: Re: where are the CALayer struts and springs on iPhone?
  • Previous by thread: Re: where are the CALayer struts and springs on iPhone?
  • Next by thread: Re: sharing file descriptors to an NSTask
  • Index(es):
    • Date
    • Thread