(waitpid -1 #f) now returns #f if no child has died yet.

This commit is contained in:
Abdulaziz Ghuloum
2008-06-13 22:11:51 -07:00
parent 8f0f0abbca
commit 333dc03f8f
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -193,11 +193,11 @@ ikrt_waitpid(ikptr rvec, ikptr pid, ikptr block /*, ikpcb* pcb */){
ref(rvec, off_record_data+2*wordsize) =
ik_signal_num_to_code(WTERMSIG(status));
}
}else if(r == 0){ /* would have blocked */
; /* let rvec return as all #f's */
}else {
return rvec;
} else if(r == 0){ /* would have blocked */
return fix(0);
} else {
return ik_errno_to_code();
}
return rvec;
}