summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
96aa77d)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
{ NULL, 0, 0, NULL, 0, NULL, NULL },
};
{ NULL, 0, 0, NULL, 0, NULL, NULL },
};
+static void handle_textdump_sigterm(int signal)
+{
+ quit = 1;
+ lttng_destroy_session("test");
+}
+
void *refresh_thread(void *p)
{
struct mmap_stream *mmap_info;
void *refresh_thread(void *p)
{
struct mmap_stream *mmap_info;
+ if (opt_textdump) {
+ signal(SIGTERM, handle_textdump_sigterm);
+ signal(SIGINT, handle_textdump_sigterm);
+ }
ret = setup_live_tracing();
if (ret < 0) {
goto end;
ret = setup_live_tracing();
if (ret < 0) {
goto end;