diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-09-14 16:50:34 +0200 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-09-14 16:50:34 +0200 |
commit | 1dc8fa3c988576ee2ad8d78a83df8afa0f5fa736 (patch) | |
tree | e3d4aca8a01b93f6b342c4b31a97fa1a2d7e46a4 /node-admin | |
parent | 4e6dd0ecf51eb30f54794299598dfbd60d527a79 (diff) |
Document public method instead
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/CommandLine.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/CommandLine.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/CommandLine.java index 95b76c4b93a..e00c1dabf0f 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/CommandLine.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/CommandLine.java @@ -243,6 +243,10 @@ public class CommandLine { return this; } + /** + * WARNING: This will leave the child as a zombie process until this process dies. + * I.e. only use this just before or a limited number of times per host admin restart. + */ public CommandLine doNotWaitForTermination() { this.waitForTermination = false; return this; @@ -263,8 +267,6 @@ public class CommandLine { private CommandResult doExecute() { try (ChildProcess2 child = processFactory.spawn(this)) { if (!waitForTermination) { - // WARNING: This will leave the child as a zombie process until this process dies. - // I.e. only use this just before or a limited number of times per host admin restart. return new CommandResult(this, 0, ""); } |