From: Bryan Christianson Date: Mon, 31 Jul 2017 10:19:22 +0000 (+1200) Subject: main: fix -q option X-Git-Tag: 3.2-pre2~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f1fc1ee78b18d37a6e66534a723c3d8f4359d50;p=thirdparty%2Fchrony.git main: fix -q option Attempting to step the system clock by using the -q option with chronyd would fail. --- diff --git a/main.c b/main.c index 5c6a2817..b93a8835 100644 --- a/main.c +++ b/main.c @@ -448,8 +448,13 @@ int main sched_priority = parse_int_arg(optarg); break; case 'q': + ref_mode = REF_ModeUpdateOnce; + nofork = 1; + client_only = 0; + system_log = 0; + break; case 'Q': - ref_mode = opt == 'q' ? REF_ModeUpdateOnce : REF_ModePrintOnce; + ref_mode = REF_ModePrintOnce; nofork = 1; client_only = 1; clock_control = 0;