projects
/
lttngtop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c941855
)
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>
Mon, 27 Aug 2012 03:44:12 +0000
(23:44 -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 5c3267ef60ffc11d37a01f8988befcbccc8b2eef..be323eb5cc6761cf3e70d628c282042d3b2c707c 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.024504 seconds
and
4
git commands to generate.