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/09/05 10:26:31 UTC
svn commit: r811603 -
/commons/sandbox/runtime/trunk/src/main/native/os/hpux/shm.c
Author: mturk
Date: Sat Sep 5 08:26:31 2009
New Revision: 811603
URL: http://svn.apache.org/viewvc?rev=811603&view=rev
Log:
Fix typo. Use correct shm descriptor
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/hpux/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=811603&r1=811602&r2=811603&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 Sat Sep 5 08:26:31 2009
@@ -448,7 +448,6 @@
{
int rc = 0;
struct shmid_ds shmbuf;
- int shmid;
acr_shm_t *m = (acr_shm_t *)ACR_IOH_FDATA(shm);
if (ACR_IOH_FTYPE(shm) != ACR_DT_SHM) {
@@ -462,7 +461,7 @@
shmbuf.shm_perm.uid = uid;
shmbuf.shm_perm.gid = gid;
shmbuf.shm_perm.mode = ACR_UnixPermsToMode(perms);
- if (shmctl(shmid, IPC_SET, &shmbuf) == -1) {
+ if (shmctl(m->shmid, IPC_SET, &shmbuf) == -1) {
rc = ACR_GET_OS_ERROR();
goto finally;
}