diff mbox

[ovs-dev] utilities: ovs-lib: Signal start_daemon failures

Message ID 20160908205322.19774-1-mchandras@suse.de
State Superseded
Headers show

Commit Message

Markos Chandras Sept. 8, 2016, 8:53 p.m. UTC
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.

Signed-off-by: Markos Chandras <mchandras@suse.de>
---
 utilities/ovs-lib.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
index 773efb3..6fd861e 100644
--- a/utilities/ovs-lib.in
+++ b/utilities/ovs-lib.in
@@ -190,7 +190,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.