From 7b054050c708e42a46c71767fd3e7a048c76498f Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 19 Nov 2024 05:05:41 +0200 Subject: [PATCH] tasking: Do not free tty It took only 2 months to figure it out that this was causing unexpected crashes... lol --- tasking/process.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasking/process.cpp b/tasking/process.cpp index 55ceb1a..976d94e 100644 --- a/tasking/process.cpp +++ b/tasking/process.cpp @@ -270,8 +270,14 @@ namespace Tasking delete this->FileDescriptors; debug("Deleting tty"); - if (this->tty) - delete ((TTY::TeletypeDriver *)this->tty); + // if (this->tty) + // delete ((TTY::TeletypeDriver *)this->tty); + fixme("remove workarounds for stdio and tty"); + + /* FIXME: DON'T DELETE THE TTY + spawn.cpp is using this as workaround + tty == KernelConsole::CurrentTerminal.load(); + */ /* If we own the pointer to the PageTable, we need to free it */