wait_for_signal