This commit is contained in:
2020-09-03 01:20:19 +08:00
parent 5b27f47e10
commit 79e6335c32
2 changed files with 3 additions and 21 deletions
-20
View File
@@ -1,20 +0,0 @@
<?php
namespace Snowflake\Process;
class PrintIn extends Process
{
public function onHandler(\Swoole\Process $process)
{
do {
sleep(1);
} while (true);
}
}
+3 -1
View File
@@ -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();
}
/**