From 7338886bd4248ac360d7632962e5b8f363c40fdc Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 13 Jun 2010 21:03:16 +0200 Subject: 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 --- src/ulogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)); } -- cgit v1.2.3