# HG changeset patch # User Kim Alvefur # Date 1538938731 -7200 # Node ID 352e8b75c1ae84a29e0aab89c77987b8af86f594 # Parent 6397e965a22d94040cdcc0cc89c4dee00952d14d util.poll: Zero FD sets watched for errors on creation diff -r 6397e965a22d -r 352e8b75c1ae util-src/poll.c --- a/util-src/poll.c Sun Oct 07 18:44:46 2018 +0200 +++ b/util-src/poll.c Sun Oct 07 20:58:51 2018 +0200 @@ -389,6 +389,8 @@ FD_ZERO(&state->wantwrite); FD_ZERO(&state->readable); FD_ZERO(&state->writable); + FD_ZERO(&state->all); + FD_ZERO(&state->err); state->processed = FD_SETSIZE; #endif