Welcome to little lamb

Code » anopa » commit 8ccab8e

Minor tweak

author Olivier Brunel
2015-04-21 19:19:41 UTC
committer Olivier Brunel
2015-04-21 19:19:41 UTC
parent 78d15b00b2c297492a59d6487a7347fb6af00fa9

Minor tweak

src/libanopa/exec_oneshot.c +3 -3

diff --git a/src/libanopa/exec_oneshot.c b/src/libanopa/exec_oneshot.c
index 97ee2f1..50d76d4 100644
--- a/src/libanopa/exec_oneshot.c
+++ b/src/libanopa/exec_oneshot.c
@@ -24,9 +24,9 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <errno.h>
-#include <signal.h>
 #include <skalibs/allreadwrite.h>
 #include <skalibs/djbunix.h>
+#include <skalibs/sig.h>
 #include <skalibs/selfpipe.h>
 #include <skalibs/bytestr.h>
 #include <skalibs/tai.h>
@@ -184,8 +184,8 @@ _exec_oneshot (int si, aa_mode mode)
 
         selfpipe_finish ();
         /* Ignore SIGINT to make sure one can ^C to timeout a service without
-         * issue. Mostly useful when e.g. aa-start is ran from terminal. */
-        sigset (SIGINT, SIG_IGN);
+         * issue. */
+        sig_ignore (SIGINT);
         fd_close (p_int[0]);
         fd_close (p_in[1]);
         fd_close (p_out[0]);