From d3a347e4322bc19ca7010334de8081b54e73664e Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 9 Oct 2023 22:14:34 +0200 Subject: [PATCH] taskbar: Handle SIGCHLD as part of the event loop --- apps/taskbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/taskbar.cpp b/apps/taskbar.cpp index 6d9c1d92..1555f3e5 100644 --- a/apps/taskbar.cpp +++ b/apps/taskbar.cpp @@ -40,7 +40,7 @@ Result luna_main(int argc, char** argv) ui::App app; TRY(app.init(argc, argv)); - signal(SIGCHLD, sigchld_handler); + TRY(os::EventLoop::the().register_signal_handler(SIGCHLD, sigchld_handler)); ui::Rect screen = app.screen_rect();