Browse code

- shm cleanup for the no MMAP case

Andrei Pelinescu-Onciul authored on 12/03/2003 17:34:45
Showing 1 changed files
... ...
@@ -126,7 +126,7 @@ int shm_mem_init()
126 126
 #ifdef SHM_MMAP
127 127
 	if (shm_mempool && (shm_mempool!=(void*)-1)){
128 128
 #else
129
-	if ((shm_shmid!=-1)||(shm_semid!=-1)||(shm_mempool!=(void*)-1)){
129
+	if ((shm_shmid!=-1)||(shm_mempool!=(void*)-1)){
130 130
 #endif
131 131
 		LOG(L_CRIT, "BUG: shm_mem_init: shm already initialized\n");
132 132
 		return -1;