Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caddy
Commits
f56696f4
Commit
f56696f4
authored
Jul 26, 2018
by
Richard Hartmann
Committed by
Matt Holt
Jul 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rlimit_posix.go: Use backticks for shell code (#2235)
parent
fcbb90a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rlimit_posix.go
rlimit_posix.go
+1
-1
No files found.
rlimit_posix.go
View file @
f56696f4
...
@@ -31,7 +31,7 @@ func checkFdlimit() {
...
@@ -31,7 +31,7 @@ func checkFdlimit() {
err
:=
syscall
.
Getrlimit
(
syscall
.
RLIMIT_NOFILE
,
rlimit
)
err
:=
syscall
.
Getrlimit
(
syscall
.
RLIMIT_NOFILE
,
rlimit
)
if
err
==
nil
&&
rlimit
.
Cur
<
min
{
if
err
==
nil
&&
rlimit
.
Cur
<
min
{
fmt
.
Printf
(
"WARNING: File descriptor limit %d is too low for production servers. "
+
fmt
.
Printf
(
"WARNING: File descriptor limit %d is too low for production servers. "
+
"At least %d is recommended. Fix with
\"
ulimit -n %d
\"
.
\n
"
,
rlimit
.
Cur
,
min
,
min
)
"At least %d is recommended. Fix with
`ulimit -n %d`
.
\n
"
,
rlimit
.
Cur
,
min
,
min
)
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment