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:
parent
08e4a1a4dc
commit
7ea3d40e19
Notes:
sideshowbarker
2024-07-17 22:26:36 +09:00
Author: https://github.com/mhermier Commit: https://github.com/SerenityOS/serenity/commit/7ea3d40e190 Pull-request: https://github.com/SerenityOS/serenity/pull/11306
1 changed files with 1 additions and 1 deletions
|
@ -642,7 +642,7 @@ try_select_again:
|
|||
return;
|
||||
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();
|
||||
}
|
||||
if (FD_ISSET(s_wake_pipe_fds[0], &rfds)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue