Skip to contentSkip to conversation

hv: tools: fix KVP and VSS daemons exit code

PATCH Applied Adrian Vladu 2 participants 2 messages May 6, 2019 – May 9, 2019 Hyper-V/Azure core and drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hv: tools: fix KVP and VSS daemons exit code

HyperV KVP and VSS daemons should exit with 0 when the '--help' or '-h' flags are used.

Cc "K. Y. Srinivasan" <[email protected]>
Cc Haiyang Zhang <[email protected]>
Cc Stephen Hemminger <[email protected]>
Cc Sasha Levin <[email protected]>
Cc Alessandro Pilotti <[email protected]>
---
 tools/hv/hv_kvp_daemon.c | 2 ++
 tools/hv/hv_vss_daemon.c | 2 ++
 2 files changed, 4 insertions(+)
tools/hv/hv_kvp_daemon.c +2 -0
index 8a240b31822b..f5597503c771 100644
@@ -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);
tools/hv/hv_vss_daemon.c +2 -0
index 3abd293c2a35..b58c4bbc0a26 100644
@@ -229,6 +229,8 @@ int main(int argc, char *argv[])
 			daemonize = 0;
 			break;
 		case 'h':
+			print_usage(argv);
+			exit(0);
 		default:
 			print_usage(argv);
 			exit(EXIT_FAILURE);
Signature · 1 line
2.19.1