Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3ed6c35b
Commit
3ed6c35b
authored
Sep 12, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor polish while here anyway
parent
873e75b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
mgt.h
bin/varnishd/mgt/mgt.h
+1
-1
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+3
-1
mgt_shmem.c
bin/varnishd/mgt/mgt_shmem.c
+5
-3
No files found.
bin/varnishd/mgt/mgt.h
View file @
3ed6c35b
...
...
@@ -161,7 +161,7 @@ void mgt_SHM_Init(void);
void
mgt_SHM_static_alloc
(
const
void
*
,
ssize_t
size
,
const
char
*
class
,
const
char
*
type
,
const
char
*
ident
);
void
mgt_SHM_Create
(
void
);
void
mgt_SHM_Commit
(
void
);
int
mgt_SHM_Commit
(
void
);
void
mgt_SHM_Destroy
(
int
keep
);
void
mgt_SHM_Size_Adjust
(
void
);
...
...
bin/varnishd/mgt/mgt_child.c
View file @
3ed6c35b
...
...
@@ -764,7 +764,9 @@ MGT_Run(void)
}
}
mgt_SHM_Commit
();
i
=
mgt_SHM_Commit
();
if
(
i
!=
0
)
MGT_complain
(
C_ERR
,
"Could not commit SHM file"
);
i
=
vev_schedule
(
mgt_evb
);
if
(
i
!=
0
)
...
...
bin/varnishd/mgt/mgt_shmem.c
View file @
3ed6c35b
...
...
@@ -251,20 +251,22 @@ mgt_SHM_Create(void)
* Commit the VSM
*/
void
int
mgt_SHM_Commit
(
void
)
{
char
fnbuf
[
64
];
int
retval
=
0
;
bprintf
(
fnbuf
,
"%s.%jd"
,
VSM_FILENAME
,
(
intmax_t
)
getpid
());
VJ_master
(
JAIL_MASTER_FILE
);
if
(
rename
(
fnbuf
,
VSM_FILENAME
))
{
fprintf
(
stderr
,
"Rename failed %s -> %s: %s
\n
"
,
MGT_complain
(
C_ERR
,
"Rename failed %s -> %s: %s
\n
"
,
fnbuf
,
VSM_FILENAME
,
strerror
(
errno
));
(
void
)
unlink
(
fnbuf
);
exit
(
1
)
;
retval
=
-
1
;
}
VJ_master
(
JAIL_MASTER_LOW
);
return
(
retval
);
}
/*--------------------------------------------------------------------
...
...
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