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: v1.9.1~455 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=34d3c2d49c5e957dc791d73bfd125dada590ab5c;p=lttng-ust.git 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 dafa0d72..19baba08 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); }