fix an old typo
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 8 Mar 2012 06:28:32 +0000 (00:28 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 8 Mar 2012 06:28:32 +0000 (00:28 -0600)
src/arch/util/machine-pxshm.c

index 183fdfa971f352ec7d2ed7967e2eba2d8fecad85..bbe5645976f7402d2b09c8d22babafc071603a58 100644 (file)
@@ -649,7 +649,7 @@ void freeSharedBuffers(){
                if(shm_unlink(pxshmContext->recvBufNames[i]) < 0){
                    fprintf(stderr,"Error from shm_unlink %s \n",strerror(errno));
                }
-               sem_unlink(pxshmContext->sendBufNames[i]);
+               shm_unlink(pxshmContext->sendBufNames[i]);
 #if PXSHM_LOCK
                sem_unlink(pxshmContext->sendBufNames[i]);
                sem_unlink(pxshmContext->recvBufNames[i]);
@@ -665,7 +665,7 @@ void tearDownSharedBuffers(){
                if(shm_unlink(pxshmContext->recvBufNames[i]) < 0){
                    fprintf(stderr,"Error from shm_unlink %s \n",strerror(errno));
                }
-               sem_unlink(pxshmContext->sendBufNames[i]);
+               shm_unlink(pxshmContext->sendBufNames[i]);
 #if PXSHM_LOCK
                sem_close(pxshmContext->recvBufs[i].mutex);
                sem_close(pxshmContext->sendBufs[i].mutex);