Define winch_flag as volatile sig_atomic_t.