On Sun, Mar 7, 2010 at 10:24 AM, <[email protected]> wrote: > Author: minfrin > Date: Sun Mar 7 15:24:36 2010 > New Revision: 920017 > > URL: http://svn.apache.org/viewvc?rev=920017&view=rev > Log: > Backport r920016: > Enable platform specific support for the opening of a file or > pipe in non blocking module through the APR_FOPEN_NONBLOCK flag.
I don't believe that versioning rules allow this to be added to the 1.4.x branch. > > Modified: > apr/apr/branches/1.4.x/ (props changed) > apr/apr/branches/1.4.x/file_io/unix/open.c > apr/apr/branches/1.4.x/include/apr_file_io.h > > Modified: apr/apr/branches/1.4.x/file_io/unix/open.c > URL: > http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/file_io/unix/open.c?rev=920017&r1=920016&r2=920017&view=diff > ============================================================================== > --- apr/apr/branches/1.4.x/file_io/unix/open.c (original) > +++ apr/apr/branches/1.4.x/file_io/unix/open.c Sun Mar 7 15:24:36 2010 > @@ -135,6 +135,12 @@ > } > #endif > > +#ifdef O_NONBLOCK > + if (flag & APR_FOPEN_NONBLOCK) { > + oflags |= O_NONBLOCK; > + } #else result is APR_ENOTIMPL? > +#endif
