diff options
-rw-r--r-- | src/main/cpp/blaze.cc | 2 | ||||
-rw-r--r-- | src/main/cpp/blaze_startup_options_common.cc | 2 | ||||
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc index afb701d787..7fb3511a0a 100644 --- a/src/main/cpp/blaze.cc +++ b/src/main/cpp/blaze.cc @@ -486,7 +486,7 @@ static vector<string> GetArgumentArray() { result.push_back("--batch"); } - if (globals->options.command_port != -1) { + if (globals->options.command_port != 0) { result.push_back( "--command_port=" + ToString(globals->options.command_port)); } diff --git a/src/main/cpp/blaze_startup_options_common.cc b/src/main/cpp/blaze_startup_options_common.cc index e6797a17ee..449907b4a2 100644 --- a/src/main/cpp/blaze_startup_options_common.cc +++ b/src/main/cpp/blaze_startup_options_common.cc @@ -55,7 +55,7 @@ void BlazeStartupOptions::Init() { // 3 hours (but only 15 seconds if used within a test) max_idle_secs = testing ? 15 : (3 * 3600); oom_more_eagerly_threshold = 100; - command_port = -1; + command_port = 0; oom_more_eagerly = false; watchfs = false; invocation_policy = NULL; diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java index 442b53303c..1721bb5b52 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java @@ -248,7 +248,7 @@ public class BlazeServerStartupOptions extends OptionsBase { public String invocationPolicy; @Option(name = "command_port", - defaultValue = "-1", + defaultValue = "0", category = "undocumented", help = "Port to start up the gRPC command server on. If 0, let the kernel choose. If -1, " + "use a custom protocol on an AF_UNIX socket.") |