Changeset

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
parents 9447:6397e965a22d
children 9449:94033a2529b9
files util-src/poll.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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