mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
fix indentation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user