From: Julien Desfossez Date: Tue, 24 Apr 2012 15:47:41 +0000 (-0400) Subject: stay in pause when moving forward in time X-Git-Tag: v0.2~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3e59e7681922366ad6b1e9415f321478152e0c57;p=lttngtop.git stay in pause when moving forward in time Signed-off-by: Julien Desfossez --- diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 7db1140..59e5e2f 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -1264,9 +1264,11 @@ void *handle_keyboard(void *p) } else { print_log("Manually moving forward"); sem_post(&timer); - /* we force to resume the refresh when moving forward */ - if (toggle_pause > 0) - resume_display(); + if (toggle_pause > 0) { + sem_post(&pause_sem); + update_current_view(); + sem_wait(&pause_sem); + } } break;