mirror of https://github.com/BOINC/boinc.git
client: Make the detach console stuff backwards compatible with BOINCTasks.
This commit is contained in:
parent
58a61e7533
commit
27bca08d69
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue