diff options
author | Adrian Vladu | 2019-05-06 18:50:58 +0200 |
---|---|---|
committer | Sasha Levin | 2019-08-17 21:29:23 +0200 |
commit | b0995156071b0ff29a5902964a9dc8cfad6f81c0 (patch) | |
tree | a16745466b81e7ba63fe5ddebed2ef369e3cd8c2 /tools | |
parent | tools: hv: fixed Python pep8/flake8 warnings for lsvmbus (diff) | |
download | kernel-qcow2-linux-b0995156071b0ff29a5902964a9dc8cfad6f81c0.tar.gz kernel-qcow2-linux-b0995156071b0ff29a5902964a9dc8cfad6f81c0.tar.xz kernel-qcow2-linux-b0995156071b0ff29a5902964a9dc8cfad6f81c0.zip |
tools: hv: fix KVP and VSS daemons exit code
HyperV KVP and VSS daemons should exit with 0 when the '--help'
or '-h' flags are used.
Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Sasha Levin <sashal@kernel.org>
Cc: Alessandro Pilotti <apilotti@cloudbasesolutions.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hv/hv_kvp_daemon.c | 2 | ||||
-rw-r--r-- | tools/hv/hv_vss_daemon.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index d7e06fe0270e..0ce50c319cfd 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c @@ -1386,6 +1386,8 @@ int main(int argc, char *argv[]) daemonize = 0; break; case 'h': + print_usage(argv); + exit(0); default: print_usage(argv); exit(EXIT_FAILURE); diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index efe1e34dd91b..8f813f5233d4 100644 --- a/tools/hv/hv_vss_daemon.c +++ b/tools/hv/hv_vss_daemon.c @@ -218,6 +218,8 @@ int main(int argc, char *argv[]) daemonize = 0; break; case 'h': + print_usage(argv); + exit(0); default: print_usage(argv); exit(EXIT_FAILURE); |