apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r931269 - /apr/apr/trunk/file_io/os2/pipe.c
Date Tue, 06 Apr 2010 18:50:08 GMT
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;
 }
 
 



Mime
View raw message