or `kill -0 $pid` and check the exitcode. This could be done with [posix_kill](http://www.php.net/manual/en/function.posix-kill.php) is this function is available