mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-02 13:30:44 -05:00
Check the return value from uv_async_send()
An omission pointed out by the following report from Coverity:
/lib/isc/loop.c: 483 in isc_loopmgr_pause()
>>> CID 455002: Error handling issues (CHECKED_RETURN)
>>> Calling "uv_async_send" without checking return value (as is done elsewhere 5 out of 6 times).
483 uv_async_send(&loop->pause_trigger);
This commit is contained in:
parent
e047508cb4
commit
afae41aa40
1 changed files with 2 additions and 1 deletions
|
|
@ -480,7 +480,8 @@ isc_loopmgr_pause(isc_loopmgr_t *loopmgr) {
|
|||
continue;
|
||||
}
|
||||
|
||||
uv_async_send(&loop->pause_trigger);
|
||||
int r = uv_async_send(&loop->pause_trigger);
|
||||
UV_RUNTIME_CHECK(uv_async_send, r);
|
||||
}
|
||||
|
||||
RUNTIME_CHECK(atomic_compare_exchange_strong(&loopmgr->paused,
|
||||
|
|
|
|||
Loading…
Reference in a new issue