From 0ca6c5f8149352ebf4c1c59fb5b77d8814dee8d9 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 4 Dec 2024 22:42:59 +0100 Subject: [PATCH] taskbar: Remove sigchld handler We are not launching child processes from taskbar anymore, that job is left to /bin/launch. --- gui/apps/taskbar.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gui/apps/taskbar.cpp b/gui/apps/taskbar.cpp index 4780bef7..7f5e2faf 100644 --- a/gui/apps/taskbar.cpp +++ b/gui/apps/taskbar.cpp @@ -19,11 +19,6 @@ static constexpr ui::Color TASKBAR_COLOR = ui::Color::from_rgb(83, 83, 83); static OwnedPtr launcher_client; -void sigchld_handler(int) -{ - wait(nullptr); -} - void sigquit_handler(int) { // Reload the taskbar by exec-ing the executable, resetting everything. @@ -118,7 +113,6 @@ Result luna_main(int, char**) ui::App app; TRY(app.init("/tmp/wsys.sock")); - TRY(os::EventLoop::the().register_signal_handler(SIGCHLD, sigchld_handler)); TRY(os::EventLoop::the().register_signal_handler(SIGQUIT, sigquit_handler)); launcher_client = TRY(os::IPC::Client::connect("/tmp/launch.sock", false));