On 10 Dec 2007, at 15:04, Tom Rons wrote:
> On 10 Dec 2007, at 06:03, Michael Poole wrote:
>> One early step would be to change line 185 in s_bsd.c (the "error
>> setting max fd's" line) to something like this:
>> fprintf(stderr, "error setting max fds to %d: %s\n", limit,
>> strerror(errno));
>> That would at least give the error message, although it wouldn't say
>> why OS X works differently than every other Unix variant that we have
>> tested ircu on.
>
> I have commented out the original line and replaced it by your
> suggestion, which produced the following error: "error setting max fds
> to -1: Invalid argument".

I have done some further testing by printing the values retrieved from  
getrlimit() to the terminal, it appears that rlim_cur is set to 256  
while rlim_max is -1 by default, strange.
The man pages state that only the superuser can change the max limits,  
so I manually changed the fd limit by using "ulimit -n 2048" to see  
what gives.

Now it reports 2048 for currrent and max and guess what, ircd runs...  
How peculiar that you first have to raise the FD limit manually to fix  
the max limit, at least to me it seems. :)

Thanks for your help all,

Best regards,

Tom

_______________________________________________
Coder-com mailing list
Coder-com@undernet.org
http://undernet.sbg.org/mailman/listinfo/coder-com

Reply via email to