Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
9447:6397e965a22d | 9448:352e8b75c1ae |
---|---|
387 #else | 387 #else |
388 FD_ZERO(&state->wantread); | 388 FD_ZERO(&state->wantread); |
389 FD_ZERO(&state->wantwrite); | 389 FD_ZERO(&state->wantwrite); |
390 FD_ZERO(&state->readable); | 390 FD_ZERO(&state->readable); |
391 FD_ZERO(&state->writable); | 391 FD_ZERO(&state->writable); |
392 FD_ZERO(&state->all); | |
393 FD_ZERO(&state->err); | |
392 state->processed = FD_SETSIZE; | 394 state->processed = FD_SETSIZE; |
393 #endif | 395 #endif |
394 | 396 |
395 return 1; | 397 return 1; |
396 } | 398 } |