From 99dc819bca624f4cc6b489f86990729efd0cdb46 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 22 Nov 2023 21:35:26 +0100 Subject: [PATCH] terminal: Stop killing child process manually when exiting This is already handled by the pty subsystem. --- terminal/TerminalWidget.cpp | 5 ----- terminal/TerminalWidget.h | 2 -- terminal/main.cpp | 2 -- 3 files changed, 9 deletions(-) diff --git a/terminal/TerminalWidget.cpp b/terminal/TerminalWidget.cpp index b998f5ce..aafe721b 100644 --- a/terminal/TerminalWidget.cpp +++ b/terminal/TerminalWidget.cpp @@ -498,8 +498,3 @@ bool TerminalWidget::put_code_point(wchar_t c) return did_draw; } - -void TerminalWidget::quit() -{ - kill(-tcgetpgrp(m_pty), SIGHUP); -} diff --git a/terminal/TerminalWidget.h b/terminal/TerminalWidget.h index c10c0e3e..85a397ef 100644 --- a/terminal/TerminalWidget.h +++ b/terminal/TerminalWidget.h @@ -18,8 +18,6 @@ class TerminalWidget : public ui::Widget Result process(); - void quit(); - private: ui::Canvas m_terminal_canvas; Vector m_line_buffer; diff --git a/terminal/main.cpp b/terminal/main.cpp index 71d5599e..fa6043d2 100644 --- a/terminal/main.cpp +++ b/terminal/main.cpp @@ -26,7 +26,5 @@ Result luna_main(int argc, char** argv) if (should_sleep) usleep(10000); } - terminal.quit(); - return 0; }