Diff

util-src/poll.c @ 9448:352e8b75c1ae

util.poll: Zero FD sets watched for errors on creation
author Kim Alvefur <zash@zash.se>
date Sun, 07 Oct 2018 20:58:51 +0200
parent 9447:6397e965a22d
child 9450:b890ceb1c24f
line wrap: on
line diff
--- 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