forked from Bananymous/banan-os
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:
parent
79e6de325f
commit
b38989d594
|
@ -149,6 +149,7 @@ namespace Kernel
|
||||||
s_process_lock.unlock();
|
s_process_lock.unlock();
|
||||||
|
|
||||||
// FIXME: we can't assume this is the current process
|
// FIXME: we can't assume this is the current process
|
||||||
|
ASSERT(&Process::current() == this);
|
||||||
Scheduler::get().set_current_process_done();
|
Scheduler::get().set_current_process_done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue