* cygwait.cc (cygwait): Move setting res to WAIT_SIGNALED to clarify
when WAIT_SIGNALED is returned to the caller.
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| /* cygwait.h | ||||
|  | ||||
|    Copyright 2011, 2012, 2013 Red Hat, Inc. | ||||
|    Copyright 2011, 2012, 2013, 2015 Red Hat, Inc. | ||||
|  | ||||
|    This file is part of Cygwin. | ||||
|  | ||||
| @@ -87,9 +87,10 @@ cygwait (HANDLE object, PLARGE_INTEGER timeout, unsigned mask) | ||||
| 	  if (!sig) | ||||
| 	    continue; | ||||
| 	  if (is_cw_sig_eintr || (is_cw_sig_cont && sig == SIGCONT)) | ||||
| 	    res = WAIT_SIGNALED;	/* caller will deal with signals */ | ||||
| 	    ; | ||||
| 	  else if (_my_tls.call_signal_handler ()) | ||||
| 	    continue; | ||||
| 	  res = WAIT_SIGNALED;	/* caller will deal with signals */ | ||||
| 	} | ||||
|       break; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user