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:
apio 2024-12-11 19:56:24 +01:00
parent f38c9e68c1
commit 94e7dde8af
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -64,7 +64,7 @@ Result<u64> sys_waitpid(Registers* regs, SyscallArgs args)
check(current->child_being_waited_for != -1); check(current->child_being_waited_for != -1);
target = TRY(Result<Process*>::from_option(Scheduler::find_by_pid(current->child_being_waited_for), ESRCH)); target = TRY(Result<Process*>::from_option(Scheduler::find_by_pid(current->child_being_waited_for), ESRCH));
check(!target->dead()); check(target->dead());
} }
else else
target = child.value(); target = child.value();