2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

watch_fd also requires thread->fdlock[lockid] to be held

This commit is contained in:
Mark Andrews 2020-09-02 14:42:47 +10:00
parent e923e62f6c
commit 22f499cdc4

View File

@ -890,7 +890,6 @@ wakeup_socket(isc__socketthread_t *thread, int fd, int msg) {
UNLOCK(&thread->fdlock[lockid]); UNLOCK(&thread->fdlock[lockid]);
return; return;
} }
UNLOCK(&thread->fdlock[lockid]);
/* /*
* Set requested bit. * Set requested bit.
@ -907,6 +906,7 @@ wakeup_socket(isc__socketthread_t *thread, int fd, int msg) {
"failed to start watching FD (%d): %s", fd, "failed to start watching FD (%d): %s", fd,
isc_result_totext(result)); isc_result_totext(result));
} }
UNLOCK(&thread->fdlock[lockid]);
} }
/* /*