cpp: correct the globals variable name in ComputeBaseDirectories() documentation
There is no |lock_file| in GlobalVariables structure. Actually,
it was referring to |lockfile| variable.
--
Change-Id: Ic27bd4fad79c2e8b98ae8fa701d0b81fbdd98aa2
Reviewed-on: https://bazel-review.googlesource.com/#/c/3360/
MOS_MIGRATED_REVID=120792865
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc
index 3b7a044..42e2cc7 100644
--- a/src/main/cpp/blaze.cc
+++ b/src/main/cpp/blaze.cc
@@ -1305,7 +1305,6 @@
}
}
-
// Kills the old running server if it is not the same version as us,
// dealing with various combinations of installation scheme
// (installation symlink and older MD5_MANIFEST contents).
@@ -1362,7 +1361,6 @@
write(STDERR_FILENO, buf, r);
}
-
// Signal handler.
static void handler(int signum) {
// A defensive measure:
@@ -1404,8 +1402,7 @@
}
}
-
-// Constructs the command line for a server request,
+// Constructs the command line for a server request.
static string BuildServerRequest() {
vector<string> arg_vector;
string command = globals->option_processor.GetCommand();
@@ -1531,7 +1528,7 @@
// Figure out the base directories based on embedded data, username, cwd, etc.
// Sets globals->options.install_base, globals->options.output_base,
-// globals->lock_file, globals->jvm_log_file.
+// globals->lockfile, globals->jvm_log_file.
static void ComputeBaseDirectories(const string &self_path) {
// Only start a server when in a workspace because otherwise we won't do more
// than emit a help message.