waitpid: fix oversight with last fix

This commit is contained in:
Matheus
2022-10-16 20:44:25 -03:00
parent 785ac0d486
commit 9f15808889
+1 -1
View File
@@ -53,7 +53,7 @@ syscallret syscall_waitpid(pid_t pid, int *status, int options){
while(child){
if(child->state == PROC_STATE_ZOMBIE){
if((pid > 0 && child->pid == pid) || pid == 0){
if((pid > 0 && child->pid == pid) || pid == -1){
loop = false;
break;
}