You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/10/01 15:53:07 UTC
svn commit: r820660 - in /commons/sandbox/runtime/trunk/src/main/native/os:
hpux/shm.c unix/shm.c win32/shm.c
Author: mturk
Date: Thu Oct 1 13:53:07 2009
New Revision: 820660
URL: http://svn.apache.org/viewvc?rev=820660&view=rev
Log:
Use clear instead close
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c
commons/sandbox/runtime/trunk/src/main/native/os/unix/shm.c
commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c?rev=820660&r1=820659&r2=820660&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c Thu Oct 1 13:53:07 2009
@@ -435,7 +435,7 @@
x_free((void *)(m->filename));
m->filename = NULL;
- rc = acr_ioh_close(shm);
+ rc = acr_ioh_clear(shm);
finally:
ACR_THROW_IO_IF_ERR(rc);
Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/shm.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/shm.c?rev=820660&r1=820659&r2=820660&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/shm.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/shm.c Thu Oct 1 13:53:07 2009
@@ -108,7 +108,7 @@
finally:
x_free((void *)(m->filename));
m->filename = NULL;
- if (flags & ACR_IOH_CLEAR)
+ if (flags & ACR_IOH_CLEAR)
x_free(m);
return rc;
}
@@ -416,7 +416,7 @@
x_free((void *)(m->filename));
m->filename = NULL;
- rc = acr_ioh_close(shm);
+ rc = acr_ioh_clear(shm);
finally:
ACR_THROW_IO_IF_ERR(rc);
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c?rev=820660&r1=820659&r2=820660&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c Thu Oct 1 13:53:07 2009
@@ -332,7 +332,7 @@
x_free((void *)(m->filename));
m->filename = NULL;
- rc = acr_ioh_close(shm);
+ rc = acr_ioh_clear(shm);
finally:
ACR_THROW_IO_IF_ERR(rc);