diff options
Diffstat (limited to '')
-rw-r--r-- | src/cmdline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmdline.c b/src/cmdline.c index 80d7c4f..a6a7c98 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -161,7 +161,7 @@ fail: static int remove_semaphores(void) { - int id = semget(key_shm, SEMAPHORES, 0600); + int id = semget(key_sem, SEMAPHORES, 0600); return ((id == -1) || (semctl(id, 0, IPC_RMID) == -1)) ? -1 : 0; } |