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