summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-06-13 21:03:16 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-06-13 21:03:16 +0200
commit7338886bd4248ac360d7632962e5b8f363c40fdc (patch)
tree1ca334d269e8c3d5e3c811a9d0ec82dd309077dd
parenta7324c3de08ffc206dc7dd11354105212fdb1661 (diff)
fix incorrect negative EINTR checking in main loop
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>
-rw-r--r--src/ulogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ulogd.c b/src/ulogd.c
index dc0407e..aac7be7 100644
--- a/src/ulogd.c
+++ b/src/ulogd.c
@@ -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));
}