diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-05 09:55:10 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-05 09:55:10 +0100 |
commit | a734fe1378c727cb779a0e5e84599aaf6277bbf9 (patch) | |
tree | 57be2754843f037f5a56efbd3321bd98b19251d5 | |
parent | 11420835659758f9ff2f527b3083f5203584a526 (diff) | |
download | rsyslog-a734fe1378c727cb779a0e5e84599aaf6277bbf9.tar.gz rsyslog-a734fe1378c727cb779a0e5e84599aaf6277bbf9.tar.bz2 rsyslog-a734fe1378c727cb779a0e5e84599aaf6277bbf9.zip |
support force termination in script engine
-rw-r--r-- | runtime/ruleset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/ruleset.c b/runtime/ruleset.c index c54715fc..5f9b500e 100644 --- a/runtime/ruleset.c +++ b/runtime/ruleset.c @@ -340,6 +340,11 @@ scriptExec(struct cnfstmt *root, msg_t *pMsg, wti_t *pWti) struct cnfstmt *stmt; for(stmt = root ; stmt != NULL ; stmt = stmt->next) { + if(*pWti->pbShutdownImmediate) { + DBGPRINTF("scriptExec: ShutdownImmediate set, " + "force terminating\n"); + goto done; + } if(Debug) { cnfstmtPrintOnly(stmt, 2, 0); } |