Skip to content

Commit

Permalink
win32: no need for -subservice switch, instead use -q
Browse files Browse the repository at this point in the history
  • Loading branch information
markokr committed Dec 19, 2008
1 parent cbc7124 commit 222176a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions win32/win32support.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static HANDLE win32_start_engine(int num)
return INVALID_HANDLE_VALUE;
}
}
wsprintf(cmdline, "\"%s\" -subservice \"%s\"", self_process, children_config_files[num]);
wsprintf(cmdline, "\"%s\" -q \"%s\"", self_process, children_config_files[num]);

if (!CreateProcess(NULL, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
log_error("Failed to spawn process for engine at '%s': %lu",
Expand Down Expand Up @@ -632,12 +632,6 @@ static void manage_win32_service(int argc, char *argv[])
win32_servicestart();
exit(0);
}
if (argc >= 2 && !strcmp(argv[1], "-subservice"))
{
cf_quiet = 1;
argc--;
argv++;
}
if (argc >= 2 && argc <= 4 && (
!strcmp(argv[1], "-regservice") ||
!strcmp(argv[1], "-unregservice") ||
Expand Down

0 comments on commit 222176a

Please sign in to comment.