[PATCH] supervise: set down&ready (D) even on LASTFINISH

From: Olivier Brunel <jjk_at_jjacky.com>
Date: Fri, 27 Jan 2017 20:57:14 +0100

Signed-off-by: Olivier Brunel <jjk_at_jjacky.com>
---
 src/supervision/s6-supervise.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
index 2e8fa38..99f06f6 100644
--- a/src/supervision/s6-supervise.c
+++ b/src/supervision/s6-supervise.c
_at_@ -448,6 +448,12 @@ static void finish_X (void)
   finish_x() ;
 }
 
+static void lastfinish_z (void)
+{
+    finish_z() ;
+    bail ();
+}
+
 static action_t_ref const actions[5][25] =
 {
   { &downtimeout, &nop, &bail, &bail, &bail,
_at_@ -462,7 +468,7 @@ static action_t_ref const actions[5][25] =
   { &uptimeout, &lastup_z, &up_d, &nop, &closethem,
     &killa, &killb, &killq, &killh, &killk, &killt, &killi, &kill1, &kill2, &nop, &nop, &killp, &killc, &killy,
     &up_o, &up_d, &nop, &nop, &up_o, &closethem },
-  { &finishtimeout, &bail, &nop, &nop, &closethem,
+  { &finishtimeout, &lastfinish_z, &nop, &nop, &closethem,
     &nop, &nop, &nop, &nop, &nop, &nop, &nop, &nop, &nop, &nop, &nop, &nop, &nop, &nop,
     &nop, &nop, &nop, &nop, &nop, &closethem }
 } ;
-- 
2.11.0
Received on Fri Jan 27 2017 - 19:57:14 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC