From 49d4324463ac95afda97b7dc8dc5db743d4220cb Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Thu, 11 Mar 2010 17:16:44 +0100 Subject: [PATCH] =?UTF-8?q?daemon-util:=20Use=20=E2=80=9Creturn=E2=80=9D?= =?UTF-8?q?=20instead=20of=20=E2=80=9Cexit=E2=80=9D=20in=20all=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is important if they're called directly within daemon-util. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- daemons/daemon-util.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemons/daemon-util.in b/daemons/daemon-util.in index 3cee400c9..977913787 100755 --- a/daemons/daemon-util.in +++ b/daemons/daemon-util.in @@ -121,7 +121,7 @@ is_daemon_name() { check() { if [[ "$#" -lt 1 ]]; then echo 'Missing daemon name.' >&2 - exit 1 + return 1 fi local name="$1"; shift @@ -134,7 +134,7 @@ check() { start() { if [[ "$#" -lt 1 ]]; then echo 'Missing daemon name.' >&2 - exit 1 + return 1 fi local name="$1"; shift @@ -155,7 +155,7 @@ start() { stop() { if [[ "$#" -lt 1 ]]; then echo 'Missing daemon name.' >&2 - exit 1 + return 1 fi local name="$1"; shift -- GitLab