mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +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){
|
while(child){
|
||||||
|
|
||||||
if(child->state == PROC_STATE_ZOMBIE){
|
if(child->state == PROC_STATE_ZOMBIE){
|
||||||
if((pid > 0 && child->pid == pid) || pid == 0){
|
if((pid > 0 && child->pid == pid) || pid == -1){
|
||||||
loop = false;
|
loop = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user