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 | 34be9eaebf2ff39e644a13ece3324f6f84275788 (patch) | |
tree | 4e3c075038752b8e59fd216b24b65b0317ae7793 | |
parent | e70b1af98af0c5d82049463616f5db750a1ab3a8 (diff) | |
download | prosody-34be9eaebf2ff39e644a13ece3324f6f84275788.tar.gz prosody-34be9eaebf2ff39e644a13ece3324f6f84275788.zip |
util.poll: Zero FD sets watched for errors on creation
-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 |