Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-re
Commits
f5ebe9e9
Commit
f5ebe9e9
authored
Sep 28, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the DISABLE_MAXFD_TEST flag
parent
04c673d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vmod_re.c
src/vmod_re.c
+4
-1
No files found.
src/vmod_re.c
View file @
f5ebe9e9
...
...
@@ -90,7 +90,7 @@ re_init(struct vmod_priv *priv,
const
struct
VCL_conf
*
vcl_conf
__attribute__
((
unused
)))
{
struct
sess_tbl
*
tbl
;
struct
rlimit
nfd
,
rltest
;
struct
rlimit
nfd
;
AN
(
priv
);
...
...
@@ -98,10 +98,13 @@ re_init(struct vmod_priv *priv,
AZ
(
getrlimit
(
RLIMIT_NOFILE
,
&
nfd
));
#ifndef DISABLE_MAXFD_TEST
struct
rlimit
rltest
;
rltest
.
rlim_cur
=
nfd
.
rlim_cur
;
rltest
.
rlim_max
=
nfd
.
rlim_max
+
1
;
AN
(
setrlimit
(
RLIMIT_NOFILE
,
&
rltest
));
assert
(
errno
==
EPERM
);
#endif
ALLOC_OBJ
(
tbl
,
SESS_TBL_MAGIC
);
XXXAN
(
tbl
);
...
...
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