From ab4e62245230fb4f5504832339f8b2ffdd692da7 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 15 Jul 2007 16:14:55 +0200 Subject: [PATCH] Revert "IPC: slave_sem initialized to 1." This reverts commit 539ed3a513bbebb18fc9b06a2796a48ac920d76b. --- 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 46c8aa893..05067e03d 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, 1); + slave_sem = sem_create(k2, 0); 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);