From 27bca08d698373bdde470eda6395feda4f39b0ab Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 9 Apr 2013 13:12:34 -0400 Subject: [PATCH] client: Make the detach console stuff backwards compatible with BOINCTasks. --- client/cs_cmdline.cpp | 2 +- client/main.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/cs_cmdline.cpp b/client/cs_cmdline.cpp index 7a19eff0c9..657bec424b 100644 --- a/client/cs_cmdline.cpp +++ b/client/cs_cmdline.cpp @@ -142,7 +142,7 @@ void CLIENT_STATE::parse_cmdline(int argc, char** argv) { check_all_logins = true; } else if (ARG(daemon)) { executing_as_daemon = true; - } else if (ARG(detach_phase_two) || ARG(detach) || ARG(detach_console)) { + } else if (ARG(detach_phase_two)) { detach_console = true; } else if (ARG(detach_project)) { if (i == argc-1) show_options = true; diff --git a/client/main.cpp b/client/main.cpp index 3192795218..bd3f6f8742 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -391,7 +391,9 @@ int main(int argc, char** argv) { // FIXME FIXME. Duplicate instances of -detach may cause this to be // executed unnecessarily. At worst, I think it leads to a few extra // processes being created and destroyed. - if (strcmp(argv[index], "-detach_console") == 0 || strcmp(argv[index], "--detach_console") == 0) { + if (strcmp(argv[index], "-detach") == 0 || strcmp(argv[index], "--detach") == 0 || + strcmp(argv[index], "-detach_console") == 0 || strcmp(argv[index], "--detach_console") == 0 + ) { int i, len; char *commandLine; STARTUPINFO si;