改名
This commit is contained in:
@@ -67,11 +67,13 @@ class FileChangeCustomProcess extends Command
|
||||
go(function () {
|
||||
$sign = Coroutine::waitSignal(SIGTERM, -1);
|
||||
if ($sign) {
|
||||
proc_close($this->source);
|
||||
}
|
||||
});
|
||||
go(function () use ($driver) {
|
||||
$driver->start();
|
||||
});
|
||||
go(function () {
|
||||
$this->source = proc_open("php " . APP_PATH . "kiri.php sw:server restart",
|
||||
[
|
||||
0 => ["pipe", "r"], // 标准输入,子进程从此管道中读取数据
|
||||
@@ -79,6 +81,7 @@ class FileChangeCustomProcess extends Command
|
||||
2 => ["file", "/tmp/error-output.txt", "a"] // 标准错误,写入到一个文件
|
||||
]
|
||||
, $this->pipes);
|
||||
});
|
||||
|
||||
var_dump($this->source, $this->pipes);
|
||||
Barrier::wait($make);
|
||||
|
||||
Reference in New Issue
Block a user