use pcntl_signal_dispatch