1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:47:34 +00:00

LibCore: Unconditionally report error in EventLoop::wait_for_event

When `select` fails and `VERIFY_NOT_REACHED()` is reached, it is wise
to always have a trace of what went wrong.
This commit is contained in:
Michel Hermier 2021-12-19 10:56:50 +01:00 committed by Brian Gianforcaro
parent 08e4a1a4dc
commit 7ea3d40e19

View file

@ -642,7 +642,7 @@ try_select_again:
return; return;
goto try_select_again; goto try_select_again;
} }
dbgln_if(EVENTLOOP_DEBUG, "Core::EventLoop::wait_for_event: {} ({}: {})", marked_fd_count, saved_errno, strerror(saved_errno)); dbgln("Core::EventLoop::wait_for_event: {} ({}: {})", marked_fd_count, saved_errno, strerror(saved_errno));
VERIFY_NOT_REACHED(); VERIFY_NOT_REACHED();
} }
if (FD_ISSET(s_wake_pipe_fds[0], &rfds)) { if (FD_ISSET(s_wake_pipe_fds[0], &rfds)) {