]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common, global: use lttng ust functions for handling fork-like calls 4073/head
authorJosh Durgin <jdurgin@redhat.com>
Mon, 16 Mar 2015 22:26:31 +0000 (15:26 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 18 Mar 2015 21:56:39 +0000 (14:56 -0700)
commit811898912f3e43d7312efe5d06c496e1e7e22fa4
tree0f5067720fca65be8101d0f7e0345c9aeab51cb5
parent1bea68216930e46dce5bd5f89e8ce54b402fe878
common, global: use lttng ust functions for handling fork-like calls

This allows lttng to work across fork(2) and related calls, including
daemon(3). Without these calls, LD_PRELOAD would need to include
liblttng-ust-fork.so, which wraps fork and daemon.

If these calls or the liblttng-ust-fork wrappers are not used, the
atexit(3) handlers registered by lttng may cause a crash when the
process exits. This does not happen with upstart, since it runs
ceph-osd and other daemons in the foreground.

Backport: hammer
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/common/Preforker.h
src/global/Makefile.am
src/global/global_init.cc