libust: deactivate trace-stopping destructor
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 12 Jun 2009 05:48:03 +0000 (01:48 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 12 Jun 2009 05:48:03 +0000 (01:48 -0400)
libust/tracectl.c

index 8be2cd03228edcde4196f7d211623a5a36b14d4f..e9907fc4b52a93b4de6b70905dc2ebb6a3edb2c9 100644 (file)
@@ -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
This page took 0.024627 seconds and 4 git commands to generate.