mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 21:14:08 +00:00
Fixed daemon lock checking on BSD.
This commit is contained in:
parent
7fc95e553b
commit
b8fe116836
@ -23,10 +23,10 @@ using namespace musik::core;
|
|||||||
using namespace musik::core::audio;
|
using namespace musik::core::audio;
|
||||||
using namespace musik::core::runtime;
|
using namespace musik::core::runtime;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __linux__
|
||||||
#define LOCKFILE "/tmp/musikcubed.lock"
|
|
||||||
#else
|
|
||||||
#define LOCKFILE "/var/lock/musikcubed.lock"
|
#define LOCKFILE "/var/lock/musikcubed.lock"
|
||||||
|
#else
|
||||||
|
#define LOCKFILE "/tmp/musikcubed.lock"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool exitIfRunning() {
|
bool exitIfRunning() {
|
||||||
@ -105,4 +105,4 @@ int main() {
|
|||||||
while (true) {
|
while (true) {
|
||||||
messageQueue.WaitAndDispatch();
|
messageQueue.WaitAndDispatch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user