Don't leave running markers around if they weren't there before and we quit after reporting (protocol)version.

This commit is contained in:
Howard Stearns 2017-06-20 18:09:27 -07:00
parent ac1d4d9636
commit fea8a95fc7

View file

@ -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);
}
}