You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Ryan Morgan <rm...@covalent.net> on 2001/07/02 06:28:09 UTC
[PATCH] O_NONBLOCK flag to apr_file_open
APR seems to be missing the O_NONBLOCK flag to apr_file_open. This
means that calls to open on named pipes will block until the producer
has opened the pipe for writing. Is this intended? I have no idea
how this works on win32, but a patch for unix is attached..
-Ryan
Re: [PATCH] O_NONBLOCK flag to apr_file_open
Posted by rb...@covalent.net.
We actually removed that option specifically because it wasn't portable.
:-( I think this will fall out in the wash with the named pipe redesign
however. If the namedpipe_create function returns a handle to the pipe,
then we can be sure to open that handle as a nonblocking operation.
Ryan
On Sun, 1 Jul 2001, Ryan Morgan wrote:
>
> APR seems to be missing the O_NONBLOCK flag to apr_file_open. This
> means that calls to open on named pipes will block until the producer
> has opened the pipe for writing. Is this intended? I have no idea
> how this works on win32, but a patch for unix is attached..
>
> -Ryan
>
>
_____________________________________________________________________________
Ryan Bloom rbb@apache.org
Covalent Technologies rbb@covalent.net
-----------------------------------------------------------------------------