aboutsummaryrefslogtreecommitdiff
path: root/fcgi.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-10-02 17:20:10 +0000
committerOmar Polo <op@omarpolo.com>2021-10-02 17:20:10 +0000
commit5f37f9c20d1773ad0b95b16f67a33f75fea326f4 (patch)
treebdf1d1921fc99ee30bbbc02203c2eb9e342a362b /fcgi.c
parentc016b65ca9ca4e4f84f270feb76b1038cb13f358 (diff)
simplify error check
Diffstat (limited to 'fcgi.c')
-rw-r--r--fcgi.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fcgi.c b/fcgi.c
index a975a6c..0e11d54 100644
--- a/fcgi.c
+++ b/fcgi.c
@@ -428,10 +428,9 @@ fcgi_error(struct bufferevent *bev, short err, void *d)
struct client *c;
size_t i;
- if (!(err & EVBUFFER_ERROR) ||
- !(err & EVBUFFER_EOF))
- log_warn(NULL, "unknown event error (%x)",
- err);
+ if (!(err & (EVBUFFER_ERROR|EVBUFFER_EOF)))
+ log_warn(NULL, "unknown event error (%x): %s",
+ err, strerror(errno));
for (i = 0; i < MAX_USERS; ++i) {
c = &clients[i];