 <p>Take a look at <a href="http://www.php.net/manual/en/book.pcntl.php" rel="nofollow">PCNTL</a> especially <a href="http://php.net/manual/en/function.pcntl-signal.php" rel="nofollow">pcntl_signal()</a></p>