* fhandler.cc (fhandler_base::wait_overlapped): Honor nonblocking flag for
writes. Don't reset event handle when we see a ERROR_IO_PENDING. * sigproc.cc (stopped_or_terminated): Use bool constants for consistency. * wait.cc (wait4): Remove nonsensical comment.
This commit is contained in:
		@@ -1045,13 +1045,13 @@ stopped_or_terminated (waitq *parent_w, _pinfo *child)
 | 
			
		||||
    might_match = (w->pid == child->pid);
 | 
			
		||||
 | 
			
		||||
  if (!might_match)
 | 
			
		||||
    return 0;
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  int terminated;
 | 
			
		||||
 | 
			
		||||
  if (!((terminated = (child->process_state == PID_EXITED)) ||
 | 
			
		||||
      ((w->options & WUNTRACED) && child->stopsig)))
 | 
			
		||||
    return 0;
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  parent_w->next = w->next;	/* successful wait.  remove from wait queue */
 | 
			
		||||
  w->pid = child->pid;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user