Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1030861ybe; Wed, 4 Sep 2019 11:25:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR2jlbgig2Oh9I/cMK4bi0vPoHDOLb/c2CdLOjvhihu1gt1NwxOD4XUBenm/glewFbGcrL X-Received: by 2002:a63:4c5a:: with SMTP id m26mr35560397pgl.270.1567621520568; Wed, 04 Sep 2019 11:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621520; cv=none; d=google.com; s=arc-20160816; b=iLwVMLULLaTHDzZTj2/gR7Hnr50dTmst9i1h38dXT9gAV+0BKVLzzzM9/bg9jWx0t0 ogxaDJTrIHAVi+Exrf37Ba+tlhsplrCJ+3g8cqTHiQPe4ZVv0utZy0xbPvgg9q4MHBRP T9Y4XI1/lS1C6mtEL1sAePuPd1VyXdstlPV/VR8u8WRnkQrgbEoc+X5D5+NxP7oTEKXC oB9rQ8OwAEONgka5L4eTsTiTc2re46/oRm614zg9S7FMe1XnhbDfQt/pqCXisgOZEYGa iqyXRgXyYgGHKSI8/TEzqeaGbQMWrajVGwQ1nXK2ojmlX12uyIAJpi69r9rQ+VQSgfyz 148Q== 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=CWX0df3eUiBKCH0r68q0nkPBXybze2aiLAu3xcn8YeQ=; b=eqvJ7L8hQlJheTD01cO8qed5GrYvjM8gxgg1GWisUsUrvyOv8pSq1otEzto81kbztD /Df4yDzo9d7SySPH3nf1QFJbDyhywjbtVoXRJ94bA62LNbf8s9Ihg6ocQWlxZz8TyFWX QiEPCvrQvcYhum5q7/g0xc51S/EZ64UROk21DKkIBo+pglU/mIQ7e5p20s5HlD2DaI7T AnmtUN9hNZ1u/qIGqIWAlKVT2yJz6421unPQrIakMHNHrIQv79ysFOE2a2m0lb6w5maj nDa0ZCH4w4Xl+Ui65df/MkerGz/I61zqHVUzFZH572Ejczhk7btJTRJJJqkgPhpKwMpA urSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ji0ybStQ; 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 n63si17488122pga.511.2019.09.04.11.25.04; Wed, 04 Sep 2019 11:25:20 -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=Ji0ybStQ; 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 S2388801AbfIDSCl (ORCPT + 99 others); Wed, 4 Sep 2019 14:02:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:42646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388061AbfIDSCg (ORCPT ); Wed, 4 Sep 2019 14:02:36 -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 57610208E4; Wed, 4 Sep 2019 18:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620155; bh=Ux6mz4S4+0g54ti7S6WbeadakibflhW2g4qi+dAYFIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ji0ybStQnxuZGOa+HJ+rU4w5pPf3RaDezsieGq3rjpMAHzLdmtVgNxMMXo/7tmTJG 4OaxVRdm+fIjL/xYova5jU4vv6XBrl53twLDjKCfvdpdDsxNiJkRzf4AvwX8gVuKqg 3/jG4Jt8oX4vtZ5n9CTU1ouZbfIQ1jESUOID1KHA= 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 4.14 11/57] tools: hv: fix KVP and VSS daemons exit code Date: Wed, 4 Sep 2019 19:53:39 +0200 Message-Id: <20190904175303.028531986@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175301.777414715@linuxfoundation.org> References: <20190904175301.777414715@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 62c9a503ae052..0ef215061fb50 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c @@ -1380,6 +1380,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 34031a297f024..514d29966ac67 100644 --- a/tools/hv/hv_vss_daemon.c +++ b/tools/hv/hv_vss_daemon.c @@ -172,6 +172,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