From patchwork Mon Sep 12 09:07:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markos Chandras X-Patchwork-Id: 668668 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3sXhmk6j9zz9sC4 for ; Mon, 12 Sep 2016 19:08:22 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 16555102EF; Mon, 12 Sep 2016 02:08:21 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id A8A41102BD for ; Mon, 12 Sep 2016 02:08:19 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id E47C2162649 for ; Mon, 12 Sep 2016 03:08:18 -0600 (MDT) X-ASG-Debug-ID: 1473671297-0b32373e01307e0001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar6.cudamail.com with ESMTP id Jv9qIOrhreGnuW2h (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Sep 2016 03:08:17 -0600 (MDT) X-Barracuda-Envelope-From: mchandras@suse.de X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mx2.suse.de) (195.135.220.15) by mx1-pf2.cudamail.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 12 Sep 2016 09:08:17 -0000 Received-SPF: pass (mx1-pf2.cudamail.com: SPF record at suse.de designates 195.135.220.15 as permitted sender) X-Barracuda-Apparent-Source-IP: 195.135.220.15 X-Barracuda-RBL-IP: 195.135.220.15 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 50261ABDB; Mon, 12 Sep 2016 09:08:15 +0000 (UTC) X-CudaMail-Envelope-Sender: mchandras@suse.de From: Markos Chandras To: dev@openvswitch.org X-CudaMail-MID: CM-E2-911003087 X-CudaMail-DTE: 091216 X-CudaMail-Originating-IP: 195.135.220.15 Date: Mon, 12 Sep 2016 10:07:56 +0100 X-ASG-Orig-Subj: [##CM-E2-911003087##][PATCH v2 1/2] utilities: ovs-lib: Signal start_daemon failures Message-Id: <20160912090757.23511-1-mchandras@suse.de> X-Mailer: git-send-email 2.10.0 In-Reply-To: <44cd44d7-6c73-21b8-2ed8-ca8c84405561@suse.de> References: <44cd44d7-6c73-21b8-2ed8-ca8c84405561@suse.de> X-GBUdb-Analysis: 0, 195.135.220.15, Ugly c=0 p=0 Source New X-MessageSniffer-Rules: 0-0-0-2660-c X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1473671297 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.60 X-Barracuda-Spam-Status: No, SCORE=0.60 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=BSF_SC5_MJ1963, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.32828 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS 0.50 BSF_SC5_MJ1963 Custom Rule MJ1963 Subject: [ovs-dev] [PATCH v2 1/2] utilities: ovs-lib: Signal start_daemon failures X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Make sure we communicate failures to the caller when start_daemon fails to start a process as the caller may not be able to proceed after this. Cc: Aaron Conole Signed-off-by: Markos Chandras Acked-by: Aaron Conole --- utilities/ovs-lib.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in index cbad85a..68197a4 100644 --- a/utilities/ovs-lib.in +++ b/utilities/ovs-lib.in @@ -207,7 +207,7 @@ start_daemon () { set nice -n "$priority" "$@" fi - action "Starting $daemon" "$@" + action "Starting $daemon" "$@" || return 1 if test X"$strace" != X; then # Strace doesn't have the -D option so we attach after the fact.