You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2010/04/06 20:50:08 UTC
svn commit: r931269 - /apr/apr/trunk/file_io/os2/pipe.c
Author: bjh
Date: Tue Apr 6 18:50:08 2010
New Revision: 931269
URL: http://svn.apache.org/viewvc?rev=931269&view=rev
Log:
OS/2: Fix return value from apr_file_pipe_timeout_set() when the pipe doesn't
need its blocking status changed.
Modified:
apr/apr/trunk/file_io/os2/pipe.c
Modified: apr/apr/trunk/file_io/os2/pipe.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/os2/pipe.c?rev=931269&r1=931268&r2=931269&view=diff
==============================================================================
--- apr/apr/trunk/file_io/os2/pipe.c (original)
+++ apr/apr/trunk/file_io/os2/pipe.c Tue Apr 6 18:50:08 2010
@@ -145,6 +145,8 @@ APR_DECLARE(apr_status_t) apr_file_named
APR_DECLARE(apr_status_t) apr_file_pipe_timeout_set(apr_file_t *thepipe, apr_interval_time_t timeout)
{
+ apr_status_t rv = APR_SUCCESS;
+
if (thepipe->pipe == 1) {
thepipe->timeout = timeout;
@@ -161,7 +163,11 @@ APR_DECLARE(apr_status_t) apr_file_pipe_
}
}
}
- return APR_EINVAL;
+ else {
+ rv = APR_EINVAL;
+ }
+
+ return rv;
}