diff --git a/doc/running.texi b/doc/running.texi index cfa88109c33642fc3b7b5f09ef8130997d646ec6..2e26f098d43ef3ccb3c6e903208e782cb8e2a3da 100644 --- a/doc/running.texi +++ b/doc/running.texi @@ -48,8 +48,6 @@ Parameters: -v, --verbose Verbose mode - additional runtime information. -V, --version Print knot server version. - -w, --wait Wait for the server to finish stop - operations. -i, --interactive Interactive mode (do not daemonize). -h, --help Print help and usage. diff --git a/man/knotc.8.in b/man/knotc.8.in index 343fd023395e57031e9d78602d35f40eaaae8f40..9717358294278b4641dd9353e71e8d7fe12f76a4 100644 --- a/man/knotc.8.in +++ b/man/knotc.8.in @@ -29,9 +29,6 @@ Verbose mode \- additional runtime information. \fB\-V\fR, \fB\-\-version\fR Print knot server version. .TP -\fB\-w\fR, \fB\-\-wait\fR -Wait for the server to finish stop operation. -.TP \fB\-i\fR, \fB\-\-interactive\fR Interactive mode (do not daemonize). .TP diff --git a/src/knot/ctl/knotc_main.c b/src/knot/ctl/knotc_main.c index e2c42a1b1a67cc58d7892703c7165e0c5b59260b..23d49ee35f8ac52adcd76f2dd64e1113cd12d386 100644 --- a/src/knot/ctl/knotc_main.c +++ b/src/knot/ctl/knotc_main.c @@ -25,12 +25,6 @@ #ifdef HAVE_SYS_STAT_H #include <sys/stat.h> #endif -#ifdef HAVE_SYS_SELECT_H -#include <sys/select.h> -#endif -#ifdef HAVE_SYS_WAIT_H -#include <sys/wait.h> -#endif #include "knot/knot.h" #include "common/descriptor.h" @@ -51,9 +45,7 @@ enum knotc_flag_t { F_NULL = 0 << 0, F_FORCE = 1 << 0, F_VERBOSE = 1 << 1, - F_WAIT = 1 << 2, F_INTERACTIVE = 1 << 3, - F_AUTO = 1 << 4, F_UNPRIVILEGED = 1 << 5, F_NOCONF = 1 << 6, F_DRYRUN = 1 << 7 @@ -415,7 +407,6 @@ int main(int argc, char **argv) /* Long options. */ struct option opts[] = { - {"wait", no_argument, 0, 'w'}, {"force", no_argument, 0, 'f'}, {"config", required_argument, 0, 'c'}, {"verbose", no_argument, 0, 'v'}, @@ -429,7 +420,7 @@ int main(int argc, char **argv) {0, 0, 0, 0} }; - while ((c = getopt_long(argc, argv, "s:p:y:k:wfc:viVh", opts, &li)) != -1) { + while ((c = getopt_long(argc, argv, "s:p:y:k:fc:viVh", opts, &li)) != -1) { switch (c) { case 's': r_addr = optarg; @@ -453,9 +444,6 @@ int main(int argc, char **argv) goto exit; } break; - case 'w': - flags |= F_WAIT; - break; case 'f': flags |= F_FORCE; break;