[Mono-dev] [Mono-patches] r123262 - trunk/mono/mono/io-layer

Dick Porter dick at ximian.com
Tue Jan 13 18:02:30 EST 2009


On Tue, 2009-01-13 at 16:43 -0500, Zoltan Varga (vargaz AT gmail.com)
wrote:
> Author: zoltan
> Date: 2009-01-13 16:43:23 -0500 (Tue, 13 Jan 2009)
> New Revision: 123262

> 
> 	Reapply r122913, this time handling processes by falling back to polling.
> 	

> @@ -649,6 +650,11 @@
>  		return(WAIT_FAILED);
>  	}
>  
> +	for (i = 0; i < numobjects; ++i)
> +		if (_wapi_handle_type (handles [i]) == WAPI_HANDLE_PROCESS)
> +			/* Can't wait for a process handle + another handle without polling */
> +			poll = TRUE;
> +
>  	done = test_and_own (numobjects, handles, waitall, &count, &lowest);
>  	if (done == TRUE) {
>  		return(WAIT_OBJECT_0+lowest);

This might handled more generally by using
_wapi_handle_test_capabilities (handles [i],
WAPI_HANDLE_CAP_SPECIAL_WAIT) == TRUE instead of checking specifically
for processes -- though iirc only processes currently have the 'special
wait' bit set.

- Dick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090113/65a9ec45/attachment.bin 


More information about the Mono-devel-list mailing list