]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-ceph: stop returns before daemons are dead 3215/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 19 Dec 2014 14:54:33 +0000 (15:54 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 7 Jan 2015 09:52:20 +0000 (10:52 +0100)
commit487c22a8a4b3ba099f9c19125c720e99e7c8d0db
tree4f842c71003c4d054b94d23a43f6ad2d6964027a
parentde0213457dc4e81661c32d834daac4c4ba86e278
init-ceph: stop returns before daemons are dead

The existence of the pidfile must be checked outside of the loop to send
a signal to the daemon. Otherwise the daemon will remove the pidfile and
stop can return before the process is dead because it only checks
/proc/$pid if the pidfile exists.

http://tracker.ceph.com/issues/10389 Fixes: #10389

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/init-ceph.in