]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add UV_RUNTIME_CHECK() macro to print uv_strerror()
authorOndřej Surý <ondrej@isc.org>
Tue, 15 Feb 2022 13:44:29 +0000 (14:44 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 16 Feb 2022 10:16:57 +0000 (11:16 +0100)
commit62e15bb06db5e7d209e8c20d7bdb1501df7dfba8
treedba663798d1c56ea47abf5c4742317a3473e5451
parentf4ae230d4182e257915875ea2529948551b408d9
Add UV_RUNTIME_CHECK() macro to print uv_strerror()

When libuv functions fail, they return correct return value that could
be useful for more detailed debugging.  Currently, we usually just check
whether the return value is 0 and invoke assertion error if it doesn't
throwing away the details why the call has failed.  Unfortunately, this
often happen on more exotic platforms.

Add a UV_RUNTIME_CHECK() macro that can be used to print more detailed
error message (via uv_strerror() before ending the execution of the
program abruptly with the assertion.
lib/isc/netmgr/netmgr-int.h