]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: respawn using /proc/self/exe 11873/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Oct 2016 22:54:44 +0000 (18:54 -0400)
committerLoic Dachary <ldachary@redhat.com>
Wed, 9 Nov 2016 15:10:02 +0000 (16:10 +0100)
commitaa6cc1071290386bb711920c42a086c4cd5f5a0c
treed125e7d5b834b40a95ed0ba8d0b4c74b225404cb
parent0c38c464fff2280a6345b470f1c83aa6229776cc
mds: respawn using /proc/self/exe

This allows the MDS to respawn using the same executable file even if it
has since been deleted (on Linux). Otherwise, the execv fails because
the readlink returns "/path/to/deleted (deleted)". (There is no path to
the old executable.)

Fixes: http://tracker.ceph.com/issues/17531
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 66a122025f6cf023cf7b2f3d8fbe4964fb7568a7)
src/mds/MDSDaemon.cc