mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 15:58:29 +00:00
sd-event: improve debug message when we fail to remove and fd from an epoll
Let's help users to debug issues with epoll fd removal by printing the name of the event source.
This commit is contained in:
@@ -481,7 +481,8 @@ static void source_io_unregister(sd_event_source *s) {
|
||||
return;
|
||||
|
||||
r = epoll_ctl(s->event->epoll_fd, EPOLL_CTL_DEL, s->io.fd, NULL);
|
||||
assert_log(r >= 0);
|
||||
if (r < 0)
|
||||
log_debug_errno(errno, "Failed to remove source %s from epoll: %m", strna(s->description));
|
||||
|
||||
s->io.registered = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user