mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.poll: Zero FD sets watched for errors on creation
This commit is contained in:
parent
ceadb9c57c
commit
4a73f5daef
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue