summaryrefslogtreecommitdiff
path: root/src/helpers/MainLoopExecutor.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2026-01-05 15:04:56 +0100
committerVaxry <43317083+vaxerski@users.noreply.github.com>2026-01-05 18:53:29 +0100
commit1761909bca532b854922536c644063e140cf44c2 (patch)
treea204e2f4e58aa88d676f6103d7a7893fa942f754 /src/helpers/MainLoopExecutor.cpp
parent7d8f57083e703267e18c78256b0f37108337ff81 (diff)
mainLoopExecutor: fix incorrect pipe check
Diffstat (limited to 'src/helpers/MainLoopExecutor.cpp')
-rw-r--r--src/helpers/MainLoopExecutor.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/helpers/MainLoopExecutor.cpp b/src/helpers/MainLoopExecutor.cpp
index 8632d93b..c7b5f910 100644
--- a/src/helpers/MainLoopExecutor.cpp
+++ b/src/helpers/MainLoopExecutor.cpp
@@ -11,10 +11,7 @@ static int onDataRead(int fd, uint32_t mask, void* data) {
CMainLoopExecutor::CMainLoopExecutor(std::function<void()>&& callback) : m_fn(std::move(callback)) {
int fds[2];
- pipe(fds);
-
- RASSERT(fds[0] != 0, "CMainLoopExecutor: failed to open a pipe");
- RASSERT(fds[1] != 0, "CMainLoopExecutor: failed to open a pipe");
+ RASSERT(pipe(fds) == 0, "CMainLoopExecutor: failed to open a pipe");
m_event = wl_event_loop_add_fd(g_pEventLoopManager->m_wayland.loop, fds[0], WL_EVENT_READABLE, ::onDataRead, this);