创建守护进程的时候为啥要exit(0)第一子进程

protected static function daemonize() { if (!self::$daemonize) { return; } umask(0); $pid = pcntl_fork(); if (-1 === $pid) { throw new Exc...

六神花露水 发表与 2016-10-06 3447 浏览 1 回答
请问下 stream_select 这个作用是什么,网上找不到相关资料

while (1) { $read = $this->_readFds; $write = $this->_writeFds; // 等待可读或者可写事件 stream_select($read, $write, $e, 0, $this->_selectTimeout); // 尝试执行定时任务 if(!$this->_scheduler-&...

六神花露水 发表与 2016-03-31 4890 浏览 2 回答

六神花露水

1995
积分
0
获赞数
0
粉丝数
2016-03-02 加入
🔝