terminal: Stop killing child process manually when exiting
All checks were successful
continuous-integration/drone/push Build is passing

This is already handled by the pty subsystem.
This commit is contained in:
apio 2023-11-22 21:35:26 +01:00
parent 73a7d4f2a1
commit 99dc819bca
Signed by: apio
GPG Key ID: B8A7D06E42258954
3 changed files with 0 additions and 9 deletions

View File

@ -498,8 +498,3 @@ bool TerminalWidget::put_code_point(wchar_t c)
return did_draw;
}
void TerminalWidget::quit()
{
kill(-tcgetpgrp(m_pty), SIGHUP);
}

View File

@ -18,8 +18,6 @@ class TerminalWidget : public ui::Widget
Result<bool> process();
void quit();
private:
ui::Canvas m_terminal_canvas;
Vector<u8> m_line_buffer;

View File

@ -26,7 +26,5 @@ Result<int> luna_main(int argc, char** argv)
if (should_sleep) usleep(10000);
}
terminal.quit();
return 0;
}