[chrony-dev] [PATCH] chronyd -q does not step the system clock |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] [PATCH] chronyd -q does not step the system clock
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Mon, 31 Jul 2017 22:19:22 +1200
- Cc: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a1-4; h=Feedback-ID:X-Smtpcorp-Track:Message-Id:Date: Subject:To:From:Reply-To:Sender:List-Unsubscribe; bh=MZSJoZhMzHHjdGlxF4T/JuQvjXB8Nks22T0ZS1PN7w4=; b=aQOR2svKuEjDOKctC8oTKDaIOO aaOdSch5L+iUDz5zfGJOxW8CwjSQ4CAMJLg5V0DZx3WZSBSrvRO0jt1w8LMBKuxZ1lwGyxQOMzCtP Juoags9VX7Ul/VXbnabypoexmBCtZqXo5MartxrIDdIfQvN0lmN7pM8CfTpKu/B1it4Tlty91afsn nnGlE7Z/gVrVqU/yKEnUHEql31zKY83/zvzRrdG2IIoLNQcd1W2GtqPRtnv24wB75NQuJydxmX8lD BbN13PHCVqAz9qxyo/BVDNgffp0z0tHHqT8f5AZ4MxVUWm+6FoMfN3f18ejxX7oGb+pEfvEH9nzXH PF24/zuQ==;
- Feedback-id: 149811m:149811acx33YQ:149811s1WM5jCCnZ:SMTPCORP
Attempting to step the system clock by using the -q option with chronyd would
fail.
---
main.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 5c6a281..b93a883 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;
--
2.11.0 (Apple Git-81)
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.