Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
-AM_INIT_AUTOMAKE(ltt-control,0.82-02042010)
+AM_INIT_AUTOMAKE(ltt-control,0.83-05042010)
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
}
/* -d option */
- if (!overwrite) {
- argv[argc] = "-d";
- argc++;
- }
+ argv[argc] = "-d";
+ argc++;
/* overwrite option */
if (overwrite) {
if (WEXITSTATUS(status))
fprintf(stderr, "lttd process running failed\n");
+ /*
+ * FIXME
+ * This is a temporary hack to ensure that the lttd daemon grabs
+ * handles on the debugfs buffer files before we destroy the trace
+ * session. Properly handling this will imply separating the "flush"
+ * from the "destroy" operation at kernel-level in LTTng.
+ */
+ if (overwrite)
+ sleep(2);
+
return WEXITSTATUS(status);
}