]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
fix incorrect negative EINTR checking in main loop
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 13 Jun 2010 19:03:16 +0000 (21:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 13 Jun 2010 19:03:16 +0000 (21:03 +0200)
This patch fixes the following error that is displayed if we send
SIGHUP to reopen the logfile:

ulogd.c:904 select says Interrupted system call

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/ulogd.c

index dc0407e14ab80d7f3907e4b532b89822686fb61f..aac7be7e4b78d4f173f4a9fef61e67da2493ab1a 100644 (file)
@@ -899,7 +899,7 @@ static void ulogd_main_loop(void)
                        next = ulogd_get_next_timer_run(&next_alarm);
 
                ret = ulogd_select_main(next);
-               if (ret < 0 && errno != -EINTR)
+               if (ret < 0 && errno != EINTR)
                        ulogd_log(ULOGD_ERROR, "select says %s\n",
                                  strerror(errno));
        }