(waitpid -1 #f) now returns #f if no child has died yet.
This commit is contained in:
		
							parent
							
								
									8f0f0abbca
								
							
						
					
					
						commit
						333dc03f8f
					
				|  | @ -122,7 +122,7 @@ | |||
|               (signal-code->signal-name  | ||||
|                 (wstatus-received-signal r))) | ||||
|             r] | ||||
|            [want-error? | ||||
|            [(and want-error? (not (eqv? r 0))) | ||||
|             (error who (strerror r) pid)] | ||||
|            [else #f]))])) | ||||
| 
 | ||||
|  |  | |||
|  | @ -1 +1 @@ | |||
| 1515 | ||||
| 1516 | ||||
|  |  | |||
|  | @ -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; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Abdulaziz Ghuloum
						Abdulaziz Ghuloum