X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttngtop.c;h=89c0a1d3a225718aa9658408fc3d7d815781c217;hb=24306dda1f206d5451f60f480a7b4d6f697676d7;hp=79e3e2c0cf262ec927ca5e7a23a22c89c679002d;hpb=da4a3c1d8a12b9110bd527d1a57b5b0d7891ac2b;p=lttngtop.git diff --git a/src/lttngtop.c b/src/lttngtop.c index 79e3e2c..89c0a1d 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++);