Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
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
varnishevent3
Commits
e2eb137f
Commit
e2eb137f
authored
Oct 07, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: added SPSCQ_Shutdown()
parent
279acdb3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
log.c
bin/varnishevent/log.c
+0
-1
spscq.c
bin/varnishevent/spscq.c
+6
-0
varnishevent.c
bin/varnishevent/varnishevent.c
+1
-0
varnishevent.h
bin/varnishevent/varnishevent.h
+1
-0
No files found.
bin/varnishevent/log.c
View file @
e2eb137f
...
...
@@ -49,7 +49,6 @@ syslog_setlevel(int level)
setlogmask
(
LOG_UPTO
(
level
));
}
/* XXX: is this safe? */
static
void
stdio_initnames
(
void
)
{
...
...
bin/varnishevent/spscq.c
View file @
e2eb137f
...
...
@@ -81,3 +81,9 @@ SPSCQ_Stats(void)
LOG_Log
(
LOG_INFO
,
"Queue: max=%u len=%u load=%.2f occ_hi=%u"
,
config
.
max_data
,
len
,
100
.
0
*
len
/
config
.
max_data
,
occ_hi
);
}
void
SPSCQ_Shutdown
(
void
)
{
AZ
(
pthread_mutex_destroy
(
&
spscq_lock
));
}
bin/varnishevent/varnishevent.c
View file @
e2eb137f
...
...
@@ -785,6 +785,7 @@ main(int argc, char *argv[])
LOG_Log0
(
LOG_WARNING
,
"Varnish log closed"
);
WRT_Halt
();
SPSCQ_Shutdown
();
MON_Shutdown
();
FMT_Shutdown
();
LOG_Log0
(
LOG_INFO
,
"Exiting"
);
...
...
bin/varnishevent/varnishevent.h
View file @
e2eb137f
...
...
@@ -231,6 +231,7 @@ void SPSCQ_Enq(logline_t *ptr);
logline_t
*
SPSCQ_Deq
(
void
);
unsigned
SPSCQ_Len
(
void
);
void
SPSCQ_Stats
(
void
);
void
SPSCQ_Shutdown
(
void
);
/* monitor.c */
typedef
enum
{
...
...
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