Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
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
trackrdrd
Commits
5dd49a6b
Commit
5dd49a6b
authored
Feb 20, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[trackrdrd] - init script waits longer for process to stop before starting
- monitor stats emitted one last time before abort
parent
454124e6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
handler.c
src/handler.c
+2
-1
monitor.c
src/monitor.c
+6
-0
trackrdrd.h
src/trackrdrd.h
+1
-0
No files found.
src/handler.c
View file @
5dd49a6b
...
...
@@ -91,10 +91,11 @@ stacktrace(void)
void
HNDL_Abort
(
int
sig
)
{
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
));
LOG_Log
(
LOG_ALERT
,
"Received signal %d (%s), stacktrace follows"
,
sig
,
strsignal
(
sig
));
stacktrace
();
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
)
);
MON_Output
(
);
LOG_Log0
(
LOG_ALERT
,
"Aborting"
);
abort
();
}
src/monitor.c
View file @
5dd49a6b
...
...
@@ -134,6 +134,12 @@ void
pthread_exit
((
void
*
)
NULL
);
}
void
MON_Output
(
void
)
{
log_output
();
}
void
MON_StatusShutdown
(
pthread_t
monitor
)
{
...
...
src/trackrdrd.h
View file @
5dd49a6b
...
...
@@ -357,6 +357,7 @@ typedef enum {
}
stats_update_t
;
void
*
MON_StatusThread
(
void
*
arg
);
void
MON_Output
(
void
);
void
MON_StatusShutdown
(
pthread_t
monitor
);
void
MON_StatsInit
(
void
);
void
MON_StatsUpdate
(
stats_update_t
update
);
...
...
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