pcntl_signal (): Hata atama sinyali

1 Cevap php

Neden bu hatayı happend:

Uyarı: pcntl_signal (): bir sinyal atama hatası ...

CLI PHP5, satır:

pcntl_signal (9, "signalHandlerTemp", false);

Ben SIGKILL ve gerçek ve hiçbir şey deneyin!

1 Cevap

I quote (from the PHP.net comments): rbotzer at yahoo dot com 22-Jun-2008 06:50 You cannot assign a signal handler for SIGKILL (kill -9) http://php.net/manual/en/function.pcntl-signal.php

Ve bu doğru gibi görünüyor, 'SIGHUP' içine 9 değiştirmeyi deneyin ve tekrar deneyin, kod şimdi çalışacaktır ...