summaryrefslogtreecommitdiff
path: root/news/inn/patches/patch-al
blob: 39c6460f0dfcaac0207bd65fc9c68a7e1cff3fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-al,v 1.2 2014/08/03 17:33:34 spz Exp $

--- lib/fdlimit.c.orig	2014-05-17 08:24:49.000000000 +0000
+++ lib/fdlimit.c
@@ -59,6 +59,10 @@ setfdlimit(unsigned int limit)
     }
 #endif
 
+    /* will we mind if the limit is higher? I think not. */
+    if (rl.rlim_cur >= limit)
+	return 0;
+
     rl.rlim_cur = limit;
     if (limit > rl.rlim_max)
         rl.rlim_max = limit;