Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1027236ybe; Wed, 4 Sep 2019 11:21:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyQSo8QXqRyJfihkrgbTDl32myXW3DOesdcBdOd5jVoIgBES5eNIJl49DnaROhxfgTfu5W X-Received: by 2002:a17:90a:5d98:: with SMTP id t24mr6374826pji.94.1567621299181; Wed, 04 Sep 2019 11:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621299; cv=none; d=google.com; s=arc-20160816; b=D6i5Yf3opLocZDiLAvr28QsiSQDiNNOOFcqHreP5acUAH81bxBf9EeJGXxbinRMUzX 1BtE6hpLk27ehjqh62XfL4chl/nnZOCBWEYEJCQTdlrJzKYIePDJa8sLOo//KoXmDxyB R9/cQifGf2F4Msj28dBO2Ay4iva76YNU3uy+xh2Yg4yGUwgOLXbgprn0GQfc4p/NdIeX FcE8ltmtqSDuIj31OPBaMmqEZHhXIIv6mSLS5h7SjHWZs+faajWTgOXsa7n23XjuxJDf g9jIeQSkvi7vRnhUHqpwsKBoW5g2QlTja9u2KeEwE6BI/03jULdmuH6wSnTAMkr/yufP s41A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=u4yyFRbvzQYwiN8+7m8cMLuBY44FtkJ52e6ZiWLqEB4=; b=El6xTAsG/RwLNQoTkEPkgKwVZV3kxBzzzHixCn4nPakO8bUlR+c8Re7bthH2tRRyiR RrDPBvYorIp8H5ve+XMaEqI1KNCJoi644KIF6UDLmyGZmz/2525OYkvDxpr5NI79gO/V +pxpNizDwnEpQeEWZgPwgHMN/3SLoEs03i7nXhBqYx7R/I576ekx8HdFwn7fkMkZBX3Z pAEIeASPOxG21mct8wuygDbGZNk8yObiy/BKMtRnupCMQ8S6i7T0ZJkMizwee6Q3wJxb OExh9DRz12xo98/DbhFExii/iAsYJkrssxnrnCHtAMYMdFpsyBnzZSYqhyGJ9lBlqPPS AbEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xunm3hnP; 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 q1si13685960plr.112.2019.09.04.11.21.23; Wed, 04 Sep 2019 11:21:39 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Xunm3hnP; 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 S2390155AbfIDSKx (ORCPT + 99 others); Wed, 4 Sep 2019 14:10:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:54608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390154AbfIDSKu (ORCPT ); Wed, 4 Sep 2019 14:10:50 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCBB72087E; Wed, 4 Sep 2019 18:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620649; bh=8D0XYH/BP7WlnI0S1acI+G0Wdhg7xl/oa49+rw9yleY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xunm3hnPfZ+iMt1qVPoCoOp07H6fLyLkv6F355StdGLtrzsUdv8cOscE/BMRz7wKt Jfn7dso7GfcTIJbNFEw3FN510Ihx1unGJJ9aCMLKGWeg0v2YQx6xX/Hfsjj5PaERAb Mxs4znMQaRVxXGiIE1O5DSSvStD+ReURsF1RN/F4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Vladu , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Alessandro Pilotti Subject: [PATCH 5.2 042/143] tools: hv: fix KVP and VSS daemons exit code Date: Wed, 4 Sep 2019 19:53:05 +0200 Message-Id: <20190904175315.705362983@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175314.206239922@linuxfoundation.org> References: <20190904175314.206239922@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit b0995156071b0ff29a5902964a9dc8cfad6f81c0 ] 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 Signed-off-by: Sasha Levin --- 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 d7e06fe0270ee..0ce50c319cfd6 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 efe1e34dd91b4..8f813f5233d48 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); -- 2.20.1