Welcome to little lamb

Code » anopa » commit 37f7ee4

Minor tweak

author Olivier Brunel
2017-01-27 18:16:04 UTC
committer Olivier Brunel
2017-06-18 12:28:38 UTC
parent c3dd6f83d0ef51b4cec5820d783c75088cae305c

Minor tweak

...or ugly hack. We don't update the current ts after writing to stdout/stderr
but we might be writing a few things, and under certain (VM) circumstances
it might be slowish, which could lead to some 1s deadline to be hit...

src/libanopa/service.c +2 -1

diff --git a/src/libanopa/service.c b/src/libanopa/service.c
index d48bfea..993bbb1 100644
--- a/src/libanopa/service.c
+++ b/src/libanopa/service.c
@@ -2,7 +2,7 @@
  * anopa - Copyright (C) 2015-2017 Olivier Brunel
  *
  * service.c
- * Copyright (C) 2015-2016 Olivier Brunel <jjk@jjacky.com>
+ * Copyright (C) 2015-2017 Olivier Brunel <jjk@jjacky.com>
  *
  * This file is part of anopa.
  *
@@ -685,6 +685,7 @@ aa_exec_service (int si, aa_mode mode)
          * we use common code for aa-start & aa-stop, so... yeah */
         _exec_cb (si, 0, (pid_t) mode);
 
+    tain_now_g ();
     tain_copynow (&aa_service (si)->ts_exec);
     if (!(mode & AA_MODE_IS_DRY))
     {