summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-05-17 14:24:27 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-05-17 14:24:27 +0200
commitaf8582e50914cfc719be1a1a80eeb81030d611c5 (patch)
tree0ece18d61b635e07c4f1f6bfeefe31a96286b2ad /action.h
parent74f8bf146546275e296a3d5af17cc4c6d0397778 (diff)
downloadrsyslog-af8582e50914cfc719be1a1a80eeb81030d611c5.tar.gz
rsyslog-af8582e50914cfc719be1a1a80eeb81030d611c5.tar.xz
rsyslog-af8582e50914cfc719be1a1a80eeb81030d611c5.zip
added new cancel-reduced action thread termination method
We now manage to cancel threads that block inside a retry loop to terminate without the need to cancel the thread. Avoiding cancellation helps keep the system complexity minimal and thus provides for better stability. This also solves some issues with improper shutdown when inside an action retry loop.
Diffstat (limited to 'action.h')
-rw-r--r--action.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/action.h b/action.h
index 13b0d92e..ab7dfec7 100644
--- a/action.h
+++ b/action.h
@@ -85,6 +85,7 @@ struct action_s {
SYNC_OBJ_TOOL; /* required for mutex support */
pthread_mutex_t mutActExec; /* mutex to guard actual execution of doAction for single-threaded modules */
uchar *pszName; /* action name (for documentation) */
+ int *pbShutdownImmediate;/* to facilitate shutdown, if var is 1, shut down immediately */
//uchar **ppMsgs; /* pointer to action-calling parameters (kept in structure to save alloc() time!) */
void *ppMsgs; /* pointer to action-calling parameters (kept in structure to save alloc() time!) */
size_t *lenMsgs; /* length of message in ppMsgs */