projects
/
lttngtop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96aa77d
)
exit cleanly on ctrl+c in textdump live
author
Julien Desfossez
<jdesfossez@efficios.com>
Mon, 27 Aug 2012 03:44:12 +0000
(23:44 -0400)
committer
Julien Desfossez
<jdesfossez@efficios.com>
Sat, 19 Oct 2013 16:02:38 +0000
(12:02 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/lttngtop.c
patch
|
blob
|
blame
|
history
diff --git
a/src/lttngtop.c
b/src/lttngtop.c
index 08376cd6b0199aac096088b9e8b40a9a7f73a8c1..a33e1d828ceb57f3248b16a19b8d50366bfed227 100644
(file)
--- a/
src/lttngtop.c
+++ b/
src/lttngtop.c
@@
-90,6
+90,12
@@
static struct poptOption long_options[] = {
{ 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;
@@
-1034,6
+1040,10
@@
int main(int argc, char **argv)
}
if (!opt_input_path) {
+ if (opt_textdump) {
+ signal(SIGTERM, handle_textdump_sigterm);
+ signal(SIGINT, handle_textdump_sigterm);
+ }
ret = setup_live_tracing();
if (ret < 0) {
goto end;
This page took
0.024372 seconds
and
4
git commands to generate.