From: Pablo Neira Ayuso Date: Sun, 13 Jun 2010 19:03:16 +0000 (+0200) Subject: fix incorrect negative EINTR checking in main loop X-Git-Tag: ulogd-2.0.0beta4~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7338886bd4248ac360d7632962e5b8f363c40fdc;p=thirdparty%2Fulogd2.git 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 --- 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)); }