From 356abbb7ee9664a1d4ccf59863fc2329bab3c5c4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 4 Feb 2019 10:21:15 +0100 Subject: Kernel: Process should disassociate from its TTY when it dies. Just because we die doesn't mean we got waited on yet, so keeping around a dangling TTY pointer is just asking for trouble. --- Kernel/Process.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index e1d3d1c46c..68dc757ce2 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2170,6 +2170,7 @@ void Process::die() { set_state(Dead); m_fds.clear(); + m_tty = nullptr; destroy_all_windows(); } -- cgit v1.2.3