改名
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Snowflake\Process;
|
||||
|
||||
|
||||
class PrintIn extends Process
|
||||
{
|
||||
|
||||
|
||||
public function onHandler(\Swoole\Process $process)
|
||||
{
|
||||
do {
|
||||
|
||||
sleep(1);
|
||||
|
||||
} while (true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -46,13 +46,15 @@ class ServerInotify extends Process
|
||||
Event::add($this->inotify, [$this, 'check']);
|
||||
Event::wait();
|
||||
} else {
|
||||
Timer::tick(1000, [$this, 'tick']);
|
||||
Timer::tick(10000, [$this, 'tick']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function tick()
|
||||
{
|
||||
$this->debug('file modify listener.');
|
||||
$this->reload();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user