commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r895577 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/pipe.c
Date Mon, 04 Jan 2010 08:36:54 GMT
Author: mturk
Date: Mon Jan  4 08:36:53 2010
New Revision: 895577

URL: http://svn.apache.org/viewvc?rev=895577&view=rev
Log:
Use invalidate-and-close

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/pipe.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/pipe.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/pipe.c?rev=895577&r1=895576&r2=895577&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/pipe.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/pipe.c Mon Jan  4 08:36:53 2010
@@ -83,15 +83,13 @@
         return ACR_EBADF;
     }
     if (fp->fd >= 0) {
-        if (r_close(fp->fd))
+        if (i_close(&fp->fd))
             rc = ACR_GET_OS_ERROR();
         else
             rc = ACR_SUCCESS;
     }
     if (flags & ACR_IOH_CLEAR)
         x_free(fp);
-    else
-        fp->fd = -1;
     return rc;
 }
 



Mime
View raw message