On 3/1/2010 6:25 PM, Graham Leggett wrote:
> On 02 Mar 2010, at 2:17 AM, minf...@apache.org wrote:
> 
>> URL: http://svn.apache.org/viewvc?rev=917819&view=rev
>> Log:
>> Enable platform specific support for the opening of a file or
>> pipe in non blocking module through the APR_FOPEN_NONBLOCK flag.
> 
> According to the docs at
> http://msdn.microsoft.com/en-us/library/aa365605%28VS.85%29.aspx, a
> patch that might implement the same for Windows might look like the
> patch below:
> 
> Disclaimer: I don't have a Windows machine to build it on. Can someone
> with access to Windows verify whether this will work?
> 
> Index: file_io/win32/open.c
> ===================================================================
> --- file_io/win32/open.c    (revision 917815)
> +++ file_io/win32/open.c    (working copy)
> @@ -341,6 +341,10 @@
>          oflags |= FILE_WRITE_ATTRIBUTES;
>      }
> 
> +    if (flag & APR_FOPEN_NONBLOCK) {
> +        oflags |= PIPE_NOWAIT;
> +    }

This doesn't map 1:1.  It doesn't work for files, or consoles; only for pipes.

Reply via email to