摘要: 注册博客园2年了,工作也2年了,还没有进来发过文章,先来试试。 1 declare(ticks=1); 2 $max = 5; 3 $child = 1; 4 function sig_handler($sig){ 5 global $child; 6 switch ($sig){ 7 case SIGCHLD: 8 echo 'sigchld received'."\n"; 9 $child --;10 break;11 }12 }13 pcntl_signal(SIGCHLD,'... 阅读全文
posted @ 2013-01-05 13:17 JohnnyWei 阅读(554) 评论(0) 推荐(0) 编辑