Kernel: Add ASSERTion to Process::exit()

This is just so I don't forget that exit can currently only
be called on the executing thread itself
This commit is contained in:
Bananymous 2023-04-22 19:05:27 +03:00
parent 2dd09163e6
commit 9b2a577fc3
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ namespace Kernel
s_process_lock.unlock();
// FIXME: we can't assume this is the current process
ASSERT(&Process::current() == this);
Scheduler::get().set_current_process_done();
}