Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2689972yba; Mon, 6 May 2019 10:02:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYfe304J2mU8fCnyhIRZ/HWvn+Kx1IMdv8C7CqGjiXMPPu/YAyrLatFgI70p8w7/VWvQfp X-Received: by 2002:a17:902:8d97:: with SMTP id v23mr33580108plo.298.1557162136215; Mon, 06 May 2019 10:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557162136; cv=none; d=google.com; s=arc-20160816; b=Ns/hd0cZmtQcmDcmm60antbfPw+HgL0k+JXjnwxwtqhNOlzRLjHVwJSlw2VhWonBKJ xz8MYON8dKtXg1Bmg4KxrMK5iip+sh1CBpRp929Sx1UQjKmMrzfdvJLbcH089fbf4xLY wL0MuHpsKJK2PwX6V4Y68dtgMFlMNGqmLRHgH8uLfgYvakMLnMofyFawu2gGO2rOO7sp rQ1blEx/Whxiq5q780ggpMG0c+Ej3yE+vePeQsBbLBNnN5P/sFovmy45t/2DmR/1W4y5 5cel7NHVmpBUdgAJ32tzsPqVZK6EtBmNpc+f6WwWpOqsapbNK1SKidOegMWkOOM1otDp G/9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Yi6l9CeT12CNX2gehFAu9XSKvwqYrm2gwkOP1G8PUWI=; b=hqmW6kYUw0Ktuj/MIbucC2hnEyHamXSqO8JQ1g/eMIvNfsPXXL0JsfFQDjM6LPNp9O PeilSv0ayWLlGIF0G0Vd9EeG935di98xa7KaXRmxkFMZN+jzmupY8RDpKoU63iSTACdF +nzaRQc7FViemia0OZo6Ljxnwi3yCqZfPBalHPJx5PocPn9o6z9zFZnLV6V553jG7MMt MzLTgUIFjc4K990JLrsHYuNed5+opSTgbhB6C7dyLK2opKZ3d6oXb8vH7X5e81b5d4ve YDDVHtvhNqZuNMVjXN8yKRrVC/2agwe2dcV3tE05RuBU+96Nq5vOWU0rq0kRDRBsU0i6 rhIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si15377987pgp.477.2019.05.06.10.01.59; Mon, 06 May 2019 10:02:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbfEFRAb (ORCPT + 99 others); Mon, 6 May 2019 13:00:31 -0400 Received: from smtp1.cloudbase.it ([46.107.15.2]:18548 "EHLO smtp1.cloudbase.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbfEFRAb (ORCPT ); Mon, 6 May 2019 13:00:31 -0400 X-Greylist: delayed 555 seconds by postgrey-1.27 at vger.kernel.org; Mon, 06 May 2019 13:00:30 EDT Received: from ader1990.cloudbase.it (unknown [89.46.161.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp1.cloudbase.it (Postfix) with ESMTPSA id C43945085D; Mon, 6 May 2019 18:55:26 +0300 (EEST) From: Adrian Vladu To: linux-kernel@vger.kernel.org Cc: Adrian Vladu , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Alessandro Pilotti Subject: [PATCH] hv: tools: fix KVP and VSS daemons exit code Date: Mon, 6 May 2019 16:50:58 +0000 Message-Id: <20190506165058.6749-1-avladu@cloudbasesolutions.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HyperV KVP and VSS daemons should exit with 0 when the '--help' or '-h' flags are used. Signed-off-by: Adrian Vladu Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Sasha Levin Cc: Alessandro Pilotti --- tools/hv/hv_kvp_daemon.c | 2 ++ tools/hv/hv_vss_daemon.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index 8a240b31822b..f5597503c771 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 3abd293c2a35..b58c4bbc0a26 100644 --- a/tools/hv/hv_vss_daemon.c +++ b/tools/hv/hv_vss_daemon.c @@ -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); -- 2.19.1