From: Pierre-Marc Fournier Date: Fri, 12 Jun 2009 05:48:03 +0000 (-0400) Subject: libust: deactivate trace-stopping destructor X-Git-Tag: v0.1~214 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=899b596702867527642bc495819239ecaee6526d;p=ust.git libust: deactivate trace-stopping destructor --- diff --git a/libust/tracectl.c b/libust/tracectl.c index 8be2cd0..e9907fc 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -871,6 +871,8 @@ static void __attribute__((constructor(1000))) init() /* This is only called if we terminate normally, not with an unhandled signal, * so we cannot rely on it. */ +/* This destructor probably isn't needed, because ustd can do crash recovery. */ +#if 0 static void __attribute__((destructor)) fini() { int result; @@ -889,9 +891,6 @@ static void __attribute__((destructor)) fini() ERR("ltt_trace_destroy error"); } - /* FIXME: wait for the consumer to be done */ - //DBG("waiting 5 sec for consume"); - //sleep(5); - destroy_socket(); } +#endif