curl-library
Re: Patch: partial fix for bug #948950
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 19 Nov 2004 09:54:30 +0100 (CET)
Date: Fri, 19 Nov 2004 09:54:30 +0100 (CET)
On Thu, 18 Nov 2004, David Phillips wrote:
> You can use getrlimit(2) and setrlimit(2). They are in POSIX, but it will
> likely be necessary to add a check to configure for them. I suppose that
> the best thing to do is not open any extra file descriptors if FD_SETSIZE
> exceeds getrlimit(RLIMIT_NOFILE)->rlim_max (in which case it would act like
> test 500). Also, it might be a little cleaner to use dup(2) instead of
> opening /dev/null a number of times.
You feel like taking a stab at this?
I've just committed your patch (with my minor edits) to CVS. We should pay
attention to http://curl.haxx.se/auto/ now, to make sure this
builds/runs/tests fine all over.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-11-19