diff options
author | Adrian Vladu <avladu@cloudbasesolutions.com> | 2019-05-06 12:50:58 -0400 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2019-08-17 15:29:23 -0400 |
commit | b0995156071b0ff29a5902964a9dc8cfad6f81c0 (patch) | |
tree | a16745466b81e7ba63fe5ddebed2ef369e3cd8c2 | |
parent | 5912e791f3018de0a007c8cfa9cb38c97d3e5f5c (diff) |
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>
-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[]) | |||
1386 | daemonize = 0; | 1386 | daemonize = 0; |
1387 | break; | 1387 | break; |
1388 | case 'h': | 1388 | case 'h': |
1389 | print_usage(argv); | ||
1390 | exit(0); | ||
1389 | default: | 1391 | default: |
1390 | print_usage(argv); | 1392 | print_usage(argv); |
1391 | exit(EXIT_FAILURE); | 1393 | 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[]) | |||
218 | daemonize = 0; | 218 | daemonize = 0; |
219 | break; | 219 | break; |
220 | case 'h': | 220 | case 'h': |
221 | print_usage(argv); | ||
222 | exit(0); | ||
221 | default: | 223 | default: |
222 | print_usage(argv); | 224 | print_usage(argv); |
223 | exit(EXIT_FAILURE); | 225 | exit(EXIT_FAILURE); |