# HG changeset patch # User Kim Alvefur # Date 1538839190 -7200 # Node ID b202aa1e2d7b9a1d689ebafab50dcd8e8f2a40b3 # Parent a950f9fa913792601c59cb4c2525a9d752d15934 util.poll: Fix monitoring of socket exceptions in select mode Since state->err is a set of all watched FDs, this mistake caused all sockets to appear to have errors. diff -r a950f9fa9137 -r b202aa1e2d7b util-src/poll.c --- a/util-src/poll.c Sat Oct 06 16:38:05 2018 +0200 +++ b/util-src/poll.c Sat Oct 06 17:19:50 2018 +0200 @@ -293,7 +293,7 @@ tv.tv_sec = (time_t)timeout; tv.tv_usec = ((suseconds_t)(timeout * 1000000)) % 1000000; - ret = select(FD_SETSIZE, &state->readable, &state->writable, NULL, &tv); + ret = select(FD_SETSIZE, &state->readable, &state->writable, &state->err, &tv); #endif if(ret == 0) {