]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: respawn using /proc/self/exe 11362/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Oct 2016 22:54:44 +0000 (18:54 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Oct 2016 22:56:01 +0000 (18:56 -0400)
commit66a122025f6cf023cf7b2f3d8fbe4964fb7568a7
tree7754e9f432d7534f0f27216d1e3d90731f6f02f3
parent5a98a8cdef0398f915d215351d111ebac9b51638
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>
src/mds/MDSDaemon.cc