X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtop.c;h=26faf1de7d0344db0717e371f82b5bcd152fb1a4;hp=8a3416c8dd6bf41659b695a458d2bd52c0c50993;hb=33572a17ebf19098e1f1d3f1088e000e276eec60;hpb=ae9e85c7301dea169bc50c91d927eccd2c944e92;ds=inline diff --git a/src/lttngtop.c b/src/lttngtop.c index 8a3416c..26faf1d 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -124,11 +124,12 @@ void *ncurses_display(void *p) sem_wait(&pause_sem); if (quit) { + sem_post(&pause_sem); + sem_post(&timer); reset_ncurses(); pthread_exit(0); } - copy = g_ptr_array_index(copies, current_display_index); assert(copy); display(current_display_index++);