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
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
handler.c
src/handler.c
+2
-1
monitor.c
src/monitor.c
+6
-0
trackrdrd.h
src/trackrdrd.h
+1
-0
worker.c
src/worker.c
+4
-4
No files found.
src/handler.c
View file @
5dd49a6b
...
@@ -91,10 +91,11 @@ stacktrace(void)
...
@@ -91,10 +91,11 @@ stacktrace(void)
void
void
HNDL_Abort
(
int
sig
)
HNDL_Abort
(
int
sig
)
{
{
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
));
LOG_Log
(
LOG_ALERT
,
"Received signal %d (%s), stacktrace follows"
,
sig
,
LOG_Log
(
LOG_ALERT
,
"Received signal %d (%s), stacktrace follows"
,
sig
,
strsignal
(
sig
));
strsignal
(
sig
));
stacktrace
();
stacktrace
();
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
)
);
MON_Output
(
);
LOG_Log0
(
LOG_ALERT
,
"Aborting"
);
LOG_Log0
(
LOG_ALERT
,
"Aborting"
);
abort
();
abort
();
}
}
src/monitor.c
View file @
5dd49a6b
...
@@ -134,6 +134,12 @@ void
...
@@ -134,6 +134,12 @@ void
pthread_exit
((
void
*
)
NULL
);
pthread_exit
((
void
*
)
NULL
);
}
}
void
MON_Output
(
void
)
{
log_output
();
}
void
void
MON_StatusShutdown
(
pthread_t
monitor
)
MON_StatusShutdown
(
pthread_t
monitor
)
{
{
...
...
src/trackrdrd.h
View file @
5dd49a6b
...
@@ -357,6 +357,7 @@ typedef enum {
...
@@ -357,6 +357,7 @@ typedef enum {
}
stats_update_t
;
}
stats_update_t
;
void
*
MON_StatusThread
(
void
*
arg
);
void
*
MON_StatusThread
(
void
*
arg
);
void
MON_Output
(
void
);
void
MON_StatusShutdown
(
pthread_t
monitor
);
void
MON_StatusShutdown
(
pthread_t
monitor
);
void
MON_StatsInit
(
void
);
void
MON_StatsInit
(
void
);
void
MON_StatsUpdate
(
stats_update_t
update
);
void
MON_StatsUpdate
(
stats_update_t
update
);
...
...
src/worker.c
View file @
5dd49a6b
...
@@ -54,12 +54,12 @@ typedef enum {
...
@@ -54,12 +54,12 @@ typedef enum {
}
wrk_state_e
;
}
wrk_state_e
;
static
const
char
*
statename
[
WRK_STATE_E_LIMIT
]
=
{
static
const
char
*
statename
[
WRK_STATE_E_LIMIT
]
=
{
[
WRK_NOTSTARTED
]
=
"not started"
,
[
WRK_NOTSTARTED
]
=
"not started"
,
[
WRK_INITIALIZING
]
=
"initializing"
,
[
WRK_INITIALIZING
]
=
"initializing"
,
[
WRK_RUNNING
]
=
"running"
,
[
WRK_RUNNING
]
=
"running"
,
[
WRK_WAITING
]
=
"waiting"
,
[
WRK_WAITING
]
=
"waiting"
,
[
WRK_SHUTTINGDOWN
]
=
"shutting down"
,
[
WRK_SHUTTINGDOWN
]
=
"shutting down"
,
[
WRK_EXITED
]
=
"exited"
[
WRK_EXITED
]
=
"exited"
};
};
struct
worker_data_s
{
struct
worker_data_s
{
...
...
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