diff options
Diffstat (limited to 'synchronizer')
-rw-r--r-- | synchronizer/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp index c0c3c2d..afc3c26 100644 --- a/synchronizer/main.cpp +++ b/synchronizer/main.cpp | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "listener.h" | 36 | #include "listener.h" |
37 | #include "log.h" | 37 | #include "log.h" |
38 | #include "test.h" | 38 | #include "test.h" |
39 | #include "definitions.h" | ||
39 | 40 | ||
40 | SINK_DEBUG_AREA("main") | 41 | SINK_DEBUG_AREA("main") |
41 | 42 | ||
@@ -163,7 +164,7 @@ int main(int argc, char *argv[]) | |||
163 | Sink::Log::setPrimaryComponent(instanceIdentifier); | 164 | Sink::Log::setPrimaryComponent(instanceIdentifier); |
164 | SinkLog() << "Starting: " << instanceIdentifier << resourceType; | 165 | SinkLog() << "Starting: " << instanceIdentifier << resourceType; |
165 | 166 | ||
166 | QLockFile lockfile(instanceIdentifier + ".lock"); | 167 | QLockFile lockfile(Sink::resourceStorageLocation(instanceIdentifier) + "/resource.lock"); |
167 | lockfile.setStaleLockTime(500); | 168 | lockfile.setStaleLockTime(500); |
168 | if (!lockfile.tryLock(0)) { | 169 | if (!lockfile.tryLock(0)) { |
169 | SinkWarning() << "Failed to acquire exclusive lock on socket."; | 170 | SinkWarning() << "Failed to acquire exclusive lock on socket."; |