From dbc4970e0089d06694423debfd306ff924fe295d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B6r=C3=B6k=20Edvin?= Date: Tue, 24 Nov 2009 10:31:06 +0200 Subject: [PATCH] Set limit to 255 so that warning is shown if maxthreads*maxrec would exceed it. --- clamd/server-th.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clamd/server-th.c b/clamd/server-th.c index 5ccc6a73a..34febdfb0 100644 --- a/clamd/server-th.c +++ b/clamd/server-th.c @@ -948,6 +948,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi } #elif !defined(_LP64) if (rlim.rlim_cur > 255) { + rlim.rlim_cur = 255; logg("^Solaris only supports 256 open files for 32-bit processes, you need at least Solaris 10u4, or compile as 64-bit to support more!\n"); } #endif