Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
ef5d9b60
Commit
ef5d9b60
authored
Apr 17, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lock log output to file or stdio to prevent overlaps from the two threads
parent
d35c7717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
log.c
src/log.c
+2
-0
No files found.
src/log.c
View file @
ef5d9b60
...
@@ -67,11 +67,13 @@ stdio_log(int level, const char *msg, ...)
...
@@ -67,11 +67,13 @@ stdio_log(int level, const char *msg, ...)
if
(
level
>
logconf
.
level
)
if
(
level
>
logconf
.
level
)
return
;
return
;
flockfile
(
logconf
.
out
);
fprintf
(
logconf
.
out
,
"%s: "
,
level2name
[
level
]);
fprintf
(
logconf
.
out
,
"%s: "
,
level2name
[
level
]);
va_start
(
ap
,
msg
);
va_start
(
ap
,
msg
);
(
void
)
vfprintf
(
logconf
.
out
,
msg
,
ap
);
(
void
)
vfprintf
(
logconf
.
out
,
msg
,
ap
);
va_end
(
ap
);
va_end
(
ap
);
fprintf
(
logconf
.
out
,
"
\n
"
);
fprintf
(
logconf
.
out
,
"
\n
"
);
funlockfile
(
logconf
.
out
);
fflush
(
logconf
.
out
);
fflush
(
logconf
.
out
);
}
}
...
...
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