From: Mathieu Desnoyers Date: Tue, 22 Feb 2011 16:39:54 +0000 (-0500) Subject: markers: fix: teardown should be tagged with "destructor" attribute X-Git-Tag: v0.12~39 X-Git-Url: http://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=34d3c2d49c5e957dc791d73bfd125dada590ab5c markers: fix: teardown should be tagged with "destructor" attribute ..rather than "constructor", which led to the core markers being removed from the list before doing anything useful. Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/marker.c b/libust/marker.c index dafa0d7..19baba0 100644 --- a/libust/marker.c +++ b/libust/marker.c @@ -1423,7 +1423,7 @@ void __attribute__((constructor)) init_markers(void) } } -void __attribute__((constructor)) destroy_markers(void) +void __attribute__((destructor)) destroy_markers(void) { marker_unregister_lib(__start___markers_ptrs); }