Skip to content

Commit 91a5983

Browse files
committed
添加守护进程运行模式
1 parent 7d82f03 commit 91a5983

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Jenner/Zebra/Crontab/Daemon.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ public function start()
6161
$timer = new \EvPeriodic(0., 60., null, function ($timer, $revents) use ($crontab) {
6262
$pid = pcntl_fork();
6363
if($pid>0){
64-
// todo
64+
return;
6565
}elseif($pid==0){
6666
$crontab->start(time());
67+
exit();
6768
}else{
6869
$this->logger->error("could not fork");
6970
exit();

0 commit comments

Comments
 (0)