X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=scheduler%2Fmain.c;h=2806c26bc6f1d65d6191bd6e0cd63c9e9a68fec8;hb=f7faf1f5c3235dfa4f883522da7dc6446f028247;hp=0b8e34c9b201e04cb9ccc0d7c18df7fc58eff2a3;hpb=c07d5b2daf136da7af01c48ff78135d06d2762fc;p=thirdparty%2Fcups.git diff --git a/scheduler/main.c b/scheduler/main.c index 0b8e34c9b..2806c26bc 100644 --- a/scheduler/main.c +++ b/scheduler/main.c @@ -1,5 +1,5 @@ /* - * "$Id: main.c 177 2006-06-21 00:20:03Z jlovell $" + * "$Id: main.c 5634 2006-06-06 17:48:27Z mike $" * * Scheduler main loop for the Common UNIX Printing System (CUPS). * @@ -357,8 +357,8 @@ main(int argc, /* I - Number of command-line args */ getrlimit(RLIMIT_NOFILE, &limit); - if (limit.rlim_max > CUPS_MAX_FDS) - MaxFDs = CUPS_MAX_FDS; + if (limit.rlim_max > FD_SETSIZE) + MaxFDs = FD_SETSIZE; else MaxFDs = limit.rlim_max; @@ -2253,5 +2253,5 @@ usage(int status) /* O - Exit status */ /* - * End of "$Id: main.c 177 2006-06-21 00:20:03Z jlovell $". + * End of "$Id: main.c 5634 2006-06-06 17:48:27Z mike $". */