git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f08565a
)
removed an incorrect comment
author
Andrew Tridgell
<tridge@samba.org>
Mon, 19 Oct 1998 01:03:52 +0000
(
01:03
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 19 Oct 1998 01:03:52 +0000
(
01:03
+0000)
(This used to be commit
5abdb70e2a5cda2df444dfe5a9cdcb751be75ca8
)
source3/lib/util.c
patch
|
blob
|
history
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 8660e22e5776843e7ca1a03ba70989fae1b88d55..b49369a58203fb317ae36107218e9615333e156e 100644
(file)
--- a/
source3/lib/util.c
+++ b/
source3/lib/util.c
@@
-4857,10
+4857,6
@@
int set_maxfiles(int requested_max)
#if (defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE))
struct rlimit rlp;
getrlimit(RLIMIT_NOFILE, &rlp);
- /* Set the fd limit to be real_max_open_files + MAX_OPEN_FUDGEFACTOR to
- * account for the extra fd we need
- * as well as the log files and standard
- * handles etc. */
rlp.rlim_cur = MIN(requested_max,rlp.rlim_max);
setrlimit(RLIMIT_NOFILE, &rlp);
getrlimit(RLIMIT_NOFILE, &rlp);