From a734fe1378c727cb779a0e5e84599aaf6277bbf9 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 5 Nov 2013 09:55:10 +0100 Subject: support force termination in script engine --- runtime/ruleset.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- cgit v1.2.3