aboutsummaryrefslogtreecommitdiff
path: root/src/ui_ipc.c
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2016-07-26 16:28:40 +0200
committertoni <matzeton@googlemail.com>2016-07-26 21:21:55 +0200
commitb2c9fc568be1b8edbd2a1b7c19448fe987263bca (patch)
tree40c5aa3af09fb6b309ec7b198e6527fa50066b07 /src/ui_ipc.c
parent167bc97d30d4f5408a603671fde98bd2bde22e05 (diff)
fixed deadlock
Diffstat (limited to 'src/ui_ipc.c')
-rw-r--r--src/ui_ipc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ui_ipc.c b/src/ui_ipc.c
index 669c1d6..c190a11 100644
--- a/src/ui_ipc.c
+++ b/src/ui_ipc.c
@@ -46,8 +46,6 @@ ui_ipc_init(int is_master)
JMP_IF( msqs[MQ_IF] = mq_open(MSQ_INF, mq_oflags | O_RDONLY, crt_flags, &m_attr), (mqd_t)-1, error );
}
JMP_IF( sems[SEM_UI] = sem_open(SEM_GUI, sp_oflags, crt_flags, 0), SEM_FAILED, error );
- JMP_IF( sems[SEM_IN] = sem_open(SEM_INP, sp_oflags, crt_flags, 0), SEM_FAILED, error );
- JMP_IF( sems[SEM_BS] = sem_open(SEM_BSY, sp_oflags, crt_flags, 0), SEM_FAILED, error );
return 0;
error:
return errno;
@@ -65,9 +63,7 @@ ui_ipc_free(int is_master)
if (msqs[i]) mq_close(msqs[i]);
}
if (is_master > 0) {
- sem_unlink(SEM_BSY);
sem_unlink(SEM_GUI);
- sem_unlink(SEM_INP);
mq_unlink(MSQ_PWD);
mq_unlink(MSQ_INF);
}