Welcome to little lamb

Code » anopa » commit 02b4f82

stop: Wait for longruns to be Down & Ready (not just Down)

author Olivier Brunel
2017-01-27 18:40:36 UTC
committer Olivier Brunel
2017-06-18 12:29:21 UTC
parent 2660a314a297ec0053bec1d5d3f82032c4c4ecd1

stop: Wait for longruns to be Down & Ready (not just Down)

I.e. wait for event 'D' instead of 'd'

src/libanopa/exec_longrun.c +1 -1

diff --git a/src/libanopa/exec_longrun.c b/src/libanopa/exec_longrun.c
index d662228..a05988b 100644
--- a/src/libanopa/exec_longrun.c
+++ b/src/libanopa/exec_longrun.c
@@ -42,7 +42,7 @@ _exec_longrun (int si, aa_mode mode)
     char fifodir[l_sn + 1 + sizeof (S6_SUPERVISE_EVENTDIR)];
     tain_t deadline;
     int is_start = (mode & AA_MODE_START) ? 1 : 0;
-    const char *event = (is_start) ? ((s->gets_ready) ? "[udU]" : "u") : "d";
+    const char *event = (is_start) ? ((s->gets_ready) ? "[udU]" : "u") : "D";
     const char *cmd = (is_start) ? "u" : (mode & AA_MODE_STOP_ALL) ? "dx" : "d";
     int already = 0;