]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirtd.init.in: stop/restart() - wrong return value in case of failure
authorDouglas Schilling Landgraf <dougsland@redhat.com>
Mon, 15 Aug 2011 07:44:39 +0000 (15:44 +0800)
committerDaniel Veillard <veillard@redhat.com>
Mon, 15 Aug 2011 07:44:39 +0000 (15:44 +0800)
The function stop() was always returning 0 (OK) from killproc() even
in case of error.

AUTHORS
daemon/libvirtd.init.in

diff --git a/AUTHORS b/AUTHORS
index 9292fb655acd2ca12fed182af4a6d09d8cd86627..2b61715f0a5f4f470102847a687f223bb9eb8a9d 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -188,6 +188,7 @@ Patches have also been contributed by:
   Peter Krempa         <pkrempa@redhat.com>
   Nan Zhang            <nzhang@redhat.com>
   Wieland Hoffmann     <themineo@googlemail.com>
+  Douglas Schilling Landgraf <dougsland@redhat.com>
 
   [....send patches to get your name here....]
 
index aa7870c86c28ff2dc3819bbb59804c56f596586a..0697a2b692f41ef1020cd81ceda21b58758d0d84 100644 (file)
@@ -76,6 +76,8 @@ stop() {
         rm -f @localstatedir@/lock/subsys/$SERVICE
         rm -f $PIDFILE
         rm -rf @localstatedir@/cache/libvirt/*
+    else
+        exit $RETVAL
     fi
 }