diff options
-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); } |