]> git.mxchange.org Git - flightgear.git/commit
Multiple-instance support.
authorJames Turner <zakalawe@mac.com>
Thu, 14 Nov 2013 16:48:14 +0000 (16:48 +0000)
committerJames Turner <zakalawe@mac.com>
Fri, 15 Nov 2013 21:04:15 +0000 (21:04 +0000)
commit0cda3cbfb2754aa77aa2699720fd0c57cfb9b9d4
treef8d60252db62c026e82ffcca537b31ff00f415f1
parent13d5fd4c25d75e0ad1f039468b5701c88d9167c7
Multiple-instance support.

Write PID file to FG_HOME, use this to detect multiple launches.
When this situation is detected, set a marker property and place various
objects into read-only mode, such as the NavCache and TerraSync.

PID file is created using open+unlink semantics on POSIX, and
DELETE_ON_CLOSE on Windows, so it will be removed when fgfs exits,
even if killed or crashes.
src/Airports/airport.cxx
src/GUI/FGPUIDialog.cxx
src/Main/fg_init.cxx
src/Main/fg_init.hxx
src/Main/main.cxx
src/Main/options.cxx
src/Navaids/NavDataCache.cxx
src/Navaids/NavDataCache.hxx