Line 0
Link Here
|
|
|
1 |
--- src/shrpx.cc 2015-01-25 09:01:44.000000000 -0500 |
2 |
+++ src/shrpx.cc 2015-02-09 17:51:30.000000000 -0500 |
3 |
@@ -1862,6 +1862,7 @@ |
4 |
|
5 |
if (get_config()->rlimit_nofile) { |
6 |
- struct rlimit lim = {get_config()->rlimit_nofile, |
7 |
- get_config()->rlimit_nofile}; |
8 |
+ struct rlimit lim; |
9 |
+ |
10 |
+ lim.rlim_cur = lim.rlim_max = get_config()->rlimit_nofile; |
11 |
if (setrlimit(RLIMIT_NOFILE, &lim) != 0) { |
12 |
auto error = errno; |