X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fmodule.c;h=198e1385fb8ce2889785d33a4ca50e91f758beac;hb=1a9cecaec39a36e03c516a04bc37ab8495745f21;hp=aab28bca84b0dc71592b4215a1d02428e3a7d939;hpb=0bd2f89c122b8ead4c0bec1fbe25956393995622;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/module.c b/ltt/branches/poly/lttv/lttv/module.c index aab28bca..198e1385 100644 --- a/ltt/branches/poly/lttv/lttv/module.c +++ b/ltt/branches/poly/lttv/lttv/module.c @@ -26,7 +26,7 @@ #include #include - +#include struct _LttvLibrary { @@ -199,8 +199,8 @@ static LttvLibrary *library_load(char *name, GError **error) if(gm != NULL) break; - g_string_append(messages, g_module_error()); - g_string_append(messages, "\n"); + messages = g_string_append(messages, g_module_error()); + messages = g_string_append(messages, "\n"); g_log(G_LOG_DOMAIN,G_LOG_LEVEL_INFO,"Trial failed, %s", g_module_error()); } @@ -600,6 +600,8 @@ static void destroy() g_assert(libraries->len <= 1); initialized = FALSE; + + exit(0); } LTTV_MODULE("module", "Modules in libraries", \