taskbar: Remove sigchld handler
We are not launching child processes from taskbar anymore, that job is left to /bin/launch.
This commit is contained in:
parent
3032415bc0
commit
0ca6c5f814
@ -19,11 +19,6 @@ static constexpr ui::Color TASKBAR_COLOR = ui::Color::from_rgb(83, 83, 83);
|
|||||||
|
|
||||||
static OwnedPtr<os::IPC::Client> launcher_client;
|
static OwnedPtr<os::IPC::Client> launcher_client;
|
||||||
|
|
||||||
void sigchld_handler(int)
|
|
||||||
{
|
|
||||||
wait(nullptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
void sigquit_handler(int)
|
void sigquit_handler(int)
|
||||||
{
|
{
|
||||||
// Reload the taskbar by exec-ing the executable, resetting everything.
|
// Reload the taskbar by exec-ing the executable, resetting everything.
|
||||||
@ -118,7 +113,6 @@ Result<int> luna_main(int, char**)
|
|||||||
ui::App app;
|
ui::App app;
|
||||||
TRY(app.init("/tmp/wsys.sock"));
|
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));
|
TRY(os::EventLoop::the().register_signal_handler(SIGQUIT, sigquit_handler));
|
||||||
|
|
||||||
launcher_client = TRY(os::IPC::Client::connect("/tmp/launch.sock", false));
|
launcher_client = TRY(os::IPC::Client::connect("/tmp/launch.sock", false));
|
||||||
|
Loading…
Reference in New Issue
Block a user