1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

fix indentation

This commit is contained in:
Paul
2017-11-06 14:58:06 -08:00
committed by GitHub
parent 8093b6369b
commit 62383f7cb5

View File

@@ -288,20 +288,20 @@ bool platform_lock_single_instance()
#define LOCK_UN 8 /* unlock */
int lockfd;
struct flock lock;
struct flock lock;
lock.l_start = 0;
lock.l_len = 0;
lock.l_type = F_WRLCK;
lock.l_whence = SEEK_SET;
lock.l_start = 0;
lock.l_len = 0;
lock.l_type = F_WRLCK;
lock.l_whence = SEEK_SET;
if (fnctl(pidFile, F_SETLK, &lock) == -1) {
if (errno == EWOULDBLOCK) {
log_warning("Another OpenRCT2 session has been found running.");
return false;
}
log_error("flock returned an uncatched errno: %d", errno);
return false;
log_error("flock returned an uncatched errno: %d", errno);
return false;
return true;
}