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

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

  • Follow-Ups:
    • Re: sharing file descriptors to an NSTask
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: Finding source of EXC_BREAKPOINT crash
  • Next by Date: NSUTF8StringEncoding and umlauts
  • Previous by thread: Re: Finding source of EXC_BREAKPOINT crash
  • Next by thread: Re: sharing file descriptors to an NSTask
  • Index(es):
    • Date
    • Thread