mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
waitpid: fix oversight with last fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user