aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-12-06 07:26:28 +0000
committerGitHub <noreply@github.com>2017-12-06 07:26:28 +0000
commit05f91dc874d4ae8e8f22c3c8c5c3de5dbeceff1a (patch)
treecebeecdb0b1b5248db04371b378f076bfed98004
parent48ffe66c9aa764a691c416edb0f52a514397166b (diff)
parent8e7733b66355fe48e4c8e468ac582fbd99356a93 (diff)
downloadrspamd-05f91dc874d4ae8e8f22c3c8c5c3de5dbeceff1a.tar.gz
rspamd-05f91dc874d4ae8e8f22c3c8c5c3de5dbeceff1a.zip
Merge pull request #1947 from mmcco/master
[Fix] Use the right boolean operator on error check
-rw-r--r--src/log_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log_helper.c b/src/log_helper.c
index 942a536a1..2635e6099 100644
--- a/src/log_helper.c
+++ b/src/log_helper.c
@@ -153,7 +153,7 @@ rspamd_log_helper_read (gint fd, short what, gpointer ud)
}
}
else if (r == -1) {
- if (errno != EAGAIN || errno != EINTR) {
+ if (errno != EAGAIN && errno != EINTR) {
msg_warn ("cannot read data from log pipe: %s", strerror (errno));
event_del (&ctx->log_ev);
}