From fea8a95fc7ab9f8e4c09313f5d72b167d928bcd9 Mon Sep 17 00:00:00 2001 From: Howard Stearns Date: Tue, 20 Jun 2017 18:09:27 -0700 Subject: [PATCH] Don't leave running markers around if they weren't there before and we quit after reporting (protocol)version. --- interface/src/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 34b599654e..d5f769f9a0 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -453,6 +453,10 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { if (fp) { report(fp); fclose(fp); + if (!runningMarkerExisted) { // don't leave ours around + RunningMarker runingMarker(RUNNING_MARKER_FILENAME); + runingMarker.deleteRunningMarkerFile(); // happens in deleter, but making the side-effect explicit. + } _exit(0); } }