diff options
author | Michel Hermier <michel.hermier@gmail.com> | 2021-12-19 10:56:50 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-21 13:15:17 -0800 |
commit | 7ea3d40e1905451da528294e248b8f20e43f0d5f (patch) | |
tree | 717af9931f99e60fc160204bb1d4f03af2b9a062 /Userland | |
parent | 08e4a1a4dcbf07853f3c1a63adb64298fc236e3f (diff) | |
download | serenity-7ea3d40e1905451da528294e248b8f20e43f0d5f.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibCore/EventLoop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/EventLoop.cpp b/Userland/Libraries/LibCore/EventLoop.cpp index 83ce8851ce..7859a9429d 100644 --- a/Userland/Libraries/LibCore/EventLoop.cpp +++ b/Userland/Libraries/LibCore/EventLoop.cpp @@ -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)) { |