You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
539 B

--- a/ntpclient.c
+++ b/ntpclient.c
@@ -611,7 +611,7 @@ int main(int argc, char *argv[]) {
ntpc.cross_check=1;
for (;;) {
- c = getopt( argc, argv, "c:" DEBUG_OPTION "f:g:h:i:lp:q:" REPLAY_OPTION "st");
+ c = getopt( argc, argv, "c:" DEBUG_OPTION "f:g:h:i:lp:q:" REPLAY_OPTION "stD");
if (c == EOF) break;
switch (c) {
case 'c':
@@ -660,6 +660,10 @@ int main(int argc, char *argv[]) {
(ntpc.cross_check)=0;
break;
+ case 'D':
+ daemon(0, 0);
+ break;
+
default:
usage(argv[0]);
exit(1);