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 <mchand...@suse.de>
---
 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 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.
-- 
2.9.3

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to