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:
Tony Finch 2023-05-15 15:35:57 +01:00
parent e047508cb4
commit afae41aa40
No known key found for this signature in database

View file

@ -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,