mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Revert "IPC: slave_sem initialized to 1."
This reverts commit 539ed3a513
.
This commit is contained in:
parent
539ed3a513
commit
ab4e622452
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user