Be aware that pcntl_fork may return NULL (not -1) if the function is disabled in php.ini.
<?php
$pid = pcntl_fork();
if ( $pid < 0 || $pid === null )
die ("Unable to fork process");
?>
Be aware that pcntl_fork may return NULL (not -1) if the function is disabled in php.ini.
<?php
$pid = pcntl_fork();
if ( $pid < 0 || $pid === null )
die ("Unable to fork process");
?>