From 954385ce0d8f7176e78607aa32cb254a01ff4b9f Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 29 Apr 2020 11:43:47 +0100 Subject: [PATCH] Improve log message when fgfs_lock.pid exists Part of addressing: https://sourceforge.net/p/flightgear/codetickets/2133/ Still need to decide about a better GUI dialog for this. --- src/Main/fg_init.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 518579f88..06a87ae48 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -514,7 +514,9 @@ bool fgInitHome() int err = ::flock(fd, LOCK_EX | LOCK_NB); if (err < 0) { if ( errno == EWOULDBLOCK) { - SG_LOG(SG_GENERAL, SG_ALERT, "flightgear instance already running, switching to FG_HOME read-only."); + SG_LOG(SG_GENERAL, SG_ALERT, "flightgear instance already running, switching to FG_HOME read-only. "); + SG_LOG(SG_GENERAL, SG_ALERT, "Couldn't flock() file at:" << pidPath); + // set a marker property so terrasync/navcache don't try to write // from secondary instances fgSetBool("/sim/fghome-readonly", true);