mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
main: fix -q option
Attempting to step the system clock by using the -q option with chronyd would fail.
This commit is contained in:
committed by
Miroslav Lichvar
parent
d70df3daab
commit
4f1fc1ee78
7
main.c
7
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;
|
||||
|
||||
Reference in New Issue
Block a user