client: Make the detach console stuff backwards compatible with BOINCTasks.

This commit is contained in:
Rom Walton 2013-04-09 13:12:34 -04:00
parent 58a61e7533
commit 27bca08d69
2 changed files with 4 additions and 2 deletions

View File

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

View File

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