The option won't have any effect on the running of the daemon. Recognizing the option lets us avoid if else conditions in unit tests.
Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> --- lib/daemon.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/daemon.h b/lib/daemon.h index 0b7dc5f..8ac777f 100644 --- a/lib/daemon.h +++ b/lib/daemon.h @@ -80,6 +80,7 @@ pid_t read_pidfile(const char *name); #else #define DAEMON_OPTION_ENUMS \ OPT_DETACH, \ + OPT_NO_CHDIR, \ OPT_PIDFILE, \ OPT_PIPE_HANDLE, \ OPT_SERVICE, \ @@ -87,6 +88,7 @@ pid_t read_pidfile(const char *name); #define DAEMON_LONG_OPTIONS \ {"detach", no_argument, NULL, OPT_DETACH}, \ + {"no-chdir", no_argument, NULL, OPT_NO_CHDIR}, \ {"pidfile", optional_argument, NULL, OPT_PIDFILE}, \ {"pipe-handle", required_argument, NULL, OPT_PIPE_HANDLE}, \ {"service", no_argument, NULL, OPT_SERVICE}, \ @@ -96,6 +98,9 @@ pid_t read_pidfile(const char *name); case OPT_DETACH: \ break; \ \ + case OPT_NO_CHDIR: \ + break; \ + \ case OPT_PIDFILE: \ set_pidfile(optarg); \ break; \ -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev