summaryrefslogtreecommitdiff
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-13 19:33:26 +0000
committerJeremy Allison <jra@samba.org>2001-04-13 19:33:26 +0000
commit3c2c047e822b6c74ecc176d1623d5292657cde62 (patch)
treec82533d0a99a0728ae583c6909581757c03f89e7 /source3/smbd/files.c
parent2ef68c7e92d4661664f0410509f7cb551e74a198 (diff)
downloadsamba-3c2c047e822b6c74ecc176d1623d5292657cde62.tar.gz
samba-3c2c047e822b6c74ecc176d1623d5292657cde62.tar.bz2
samba-3c2c047e822b6c74ecc176d1623d5292657cde62.zip
Added fix from "Eric Boehm" <boehm@nortelnetworks.com> to try and set hard
limit before setting soft limit. Jeremy. (This used to be commit a1eb2752a8bee9cc7d92c664c3de84e02620933d)
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r--source3/smbd/files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index a4837a1a8b..33243e1e94 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -134,7 +134,7 @@ initialise file structures
void file_init(void)
{
- int request_max_open_files = lp_max_open_files();
+ int request_max_open_files = lp_max_open_files();
int real_lim;
/*
@@ -146,8 +146,8 @@ void file_init(void)
real_max_open_files = real_lim - MAX_OPEN_FUDGEFACTOR;
- if(real_max_open_files != request_max_open_files) {
- DEBUG(1,("file_init: Information only: requested %d \
+ if(real_max_open_files != request_max_open_files) {
+ DEBUG(1,("file_init: Information only: requested %d \
open files, %d are available.\n", request_max_open_files, real_max_open_files));
}