diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-07 20:58:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-07 20:58:51 +0200 |
commit | 4a73f5daefc054f575940a37984a7493e0574eb9 (patch) | |
tree | 4e3c075038752b8e59fd216b24b65b0317ae7793 /util-src/poll.c | |
parent | ceadb9c57cec7f8a3b01a2fe4aa71f104076d29f (diff) | |
download | prosody-4a73f5daefc054f575940a37984a7493e0574eb9.tar.gz prosody-4a73f5daefc054f575940a37984a7493e0574eb9.zip |
util.poll: Zero FD sets watched for errors on creation
Diffstat (limited to 'util-src/poll.c')
-rw-r--r-- | util-src/poll.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util-src/poll.c b/util-src/poll.c index 47a994c1..11e3fecf 100644 --- a/util-src/poll.c +++ b/util-src/poll.c @@ -389,6 +389,8 @@ int Lnew(lua_State *L) { 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 |