Fixed daemon lock checking on BSD.

This commit is contained in:
casey langen 2018-01-28 16:52:24 +00:00
parent 7fc95e553b
commit b8fe116836

View File

@ -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();
}
}
}