> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com