kernel/waitpid: fix a panic-causing extraneous exclamation mark
Big oof moment. Thankfully kernel panics sometimes just give you the exact source of the problem :P "-- KERNEL PANIC: Check failed at kernel/src/sys/waitpid.cpp:67, in sys_waitpid: !target->dead() --"
This commit is contained in:
parent
f38c9e68c1
commit
94e7dde8af
@ -64,7 +64,7 @@ Result<u64> sys_waitpid(Registers* regs, SyscallArgs args)
|
||||
check(current->child_being_waited_for != -1);
|
||||
|
||||
target = TRY(Result<Process*>::from_option(Scheduler::find_by_pid(current->child_being_waited_for), ESRCH));
|
||||
check(!target->dead());
|
||||
check(target->dead());
|
||||
}
|
||||
else
|
||||
target = child.value();
|
||||
|
Loading…
Reference in New Issue
Block a user