摘要:
$pid = pcntl_fork(); //这里最好不要有其他的语句 if ($pid == -1) { die('could not fork'); } else if ($pid) { // $p[$pid] = 'ok'; //echo "we are the parent\n"; //pcntl_wait($status); //Protect against Zombie children } else { $id = posix_getpid(); echo ... 阅读全文
posted @ 2012-04-15 21:07 bug yang 阅读(1400) 评论(0) 推荐(0) 编辑