diff options
author | Omar Polo <op@omarpolo.com> | 2021-10-02 17:20:10 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-10-02 17:20:10 +0000 |
commit | 5f37f9c20d1773ad0b95b16f67a33f75fea326f4 (patch) | |
tree | bdf1d1921fc99ee30bbbc02203c2eb9e342a362b /fcgi.c | |
parent | c016b65ca9ca4e4f84f270feb76b1038cb13f358 (diff) |
simplify error check
Diffstat (limited to 'fcgi.c')
-rw-r--r-- | fcgi.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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]; |