From 539ed3a513bbebb18fc9b06a2796a48ac920d76b Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 15 Jul 2007 14:28:35 +0200 Subject: [PATCH] IPC: slave_sem initialized to 1. --- src/main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/main.c b/src/main/main.c index 05067e03..46c8aa89 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -127,7 +127,7 @@ init_master_ipc(void) k2 = ftok(filename.source, 2); k3 = ftok(filename.source, 3); master_sem = sem_create(k1, 0); - slave_sem = sem_create(k2, 0); + slave_sem = sem_create(k2, 1); shared_mem_ipc = shmget(k3, 4096, 0600 | IPC_CREAT | IPC_EXCL); if (shared_mem_ipc == -1 && errno == EEXIST) shared_mem_ipc = shmget(k3, 4096, 0600);