tasking: Do not free tty

It took only 2 months to figure it out that this was causing unexpected crashes... lol
This commit is contained in:
EnderIce2 2024-11-19 05:05:41 +02:00
parent 4d192732cc
commit 7b054050c7
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -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 */