aboutsummaryrefslogtreecommitdiffstats
path: root/src/log_helper.c
diff options
context:
space:
mode:
authorMichael McConville <mmcco@mykolab.com>2017-12-05 11:36:15 -0700
committerMichael McConville <mmcco@mykolab.com>2017-12-05 11:36:15 -0700
commit8e7733b66355fe48e4c8e468ac582fbd99356a93 (patch)
treecebeecdb0b1b5248db04371b378f076bfed98004 /src/log_helper.c
parent48ffe66c9aa764a691c416edb0f52a514397166b (diff)
downloadrspamd-8e7733b66355fe48e4c8e468ac582fbd99356a93.tar.gz
rspamd-8e7733b66355fe48e4c8e468ac582fbd99356a93.zip
[Fix] Use the right boolean operator on error check
Diffstat (limited to 'src/log_helper.c')
-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);
}