mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-30 06:32:36 +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::runtime;
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define LOCKFILE "/tmp/musikcubed.lock"
|
||||
#else
|
||||
#ifdef __linux__
|
||||
#define LOCKFILE "/var/lock/musikcubed.lock"
|
||||
#else
|
||||
#define LOCKFILE "/tmp/musikcubed.lock"
|
||||
#endif
|
||||
|
||||
bool exitIfRunning() {
|
||||
@ -105,4 +105,4 @@ int main() {
|
||||
while (true) {
|
||||
messageQueue.WaitAndDispatch();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user