libbpf-rs
libbpf-rs copied to clipboard
Preserve errno in set_print()
We need to preserve the errno and set it back after the callback function is called.
For more context, please see https://github.com/libbpf/libbpf/pull/536