From 2b77413a34f9f3bd7abc5d6951976078f1cb0b75 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sat, 6 Jul 2019 18:25:05 +0200 Subject: [PATCH] #95 unlink semaphore after creation as other processes don't require access to it --- CHANGELOG.md | 1 + src/event_loop.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3a0ba8a..cc75f79b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +- Fixed an issue that prevented *yabai* from running under multiple users simultaneously [#95](https://github.com/koekeishiya/yabai/issues/95) ## [1.0.3] - 2019-06-30 ### Changed diff --git a/src/event_loop.c b/src/event_loop.c index 401e4fab..d93e8366 100644 --- a/src/event_loop.c +++ b/src/event_loop.c @@ -88,6 +88,7 @@ bool event_loop_init(struct event_loop *event_loop) queue_init(&event_loop->queue); event_loop->is_running = 0; event_loop->semaphore = sem_open("event_loop_semaphore", O_CREAT, 0600, 0); + sem_unlink("event_loop_semaphore"); return event_loop->semaphore != SEM_FAILED; }