From 410484d51ec94a13ce2993c9b68e12a107f63da2 Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Fri, 27 Jan 2023 14:24:25 +1100 Subject: [PATCH] force to unsupervise even if the tree is down --- src/lib66/exec/ssexec_all.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib66/exec/ssexec_all.c b/src/lib66/exec/ssexec_all.c index 653172fd..65103441 100644 --- a/src/lib66/exec/ssexec_all.c +++ b/src/lib66/exec/ssexec_all.c @@ -692,7 +692,10 @@ static int async(pidtree_t *apidt, unsigned int i, unsigned int what, ssexec_t * log_trace("beginning of the process of: ", name) ; - if (FLAGS_ISSET(apidt[i].state, (!what ? FLAGS_DOWN : FLAGS_UP))) { + if (FLAGS_ISSET(apidt[i].state, (!what ? FLAGS_DOWN : FLAGS_UP)) || + /** force to pass through unsupersive process even + * if the tree is marked down */ + FLAGS_ISSET(apidt[i].state, (what ? FLAGS_DOWN : FLAGS_UP)) && what == 2) { if (!FLAGS_ISSET(apidt[i].state, FLAGS_BLOCK)) { -- GitLab