site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221) for (int i = STDERR_FILENO + 1; i < 1024; ++i) close(i) Not a constant, but close. getdtablesize(). Avi -- Avi Drissman avi@drissman.com +--------------------------------------------------------------------+ http://avi.drissman.com/ Argh! My mail server is trunca _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com On 4/12/07 12:23 PM, Marc Epard wrote: Except that there's a constant for 1024, but I'm not finding it at the moment. Also, my Linux guy told me to use fcntl(i, F_SETFD, FD_CLOEXEC) rather than close(). I don't recall the reason why. smime.p7s