Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
curs_set(1);
endwin();
quit = 1;
+ sem_post(&pause_sem);
+ sem_post(&timer);
+ sem_post(&goodtodisplay);
}
static void handle_sigterm(int signal)
{
- fprintf(stderr, "caugh signal\n");
pthread_cancel(keyboard_thread);
reset_ncurses();
}
} else {
resume_display();
}
+ break;
case 'r':
toggle_pref_panel();
break;
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++);