call wake_up() in history_pop()