111
This commit is contained in:
@@ -104,7 +104,6 @@ class FileChangeCustomProcess extends Command
|
|||||||
}
|
}
|
||||||
@unlink(storage('.swoole.pid'));
|
@unlink(storage('.swoole.pid'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Coroutine::create(function () {
|
Coroutine::create(function () {
|
||||||
if (!$this->channel) {
|
if (!$this->channel) {
|
||||||
$this->channel = new Coroutine\Channel(1);
|
$this->channel = new Coroutine\Channel(1);
|
||||||
@@ -112,11 +111,7 @@ class FileChangeCustomProcess extends Command
|
|||||||
}
|
}
|
||||||
$this->channel->pop();
|
$this->channel->pop();
|
||||||
|
|
||||||
$descriptorspec = [
|
$descriptorspec = [0 => STDIN, 1 => STDOUT, 2 => STDERR];
|
||||||
0 => STDIN,
|
|
||||||
1 => STDOUT,
|
|
||||||
2 => STDERR,
|
|
||||||
];
|
|
||||||
|
|
||||||
proc_open("php " . APP_PATH . "kiri.php", $descriptorspec, $pipes);
|
proc_open("php " . APP_PATH . "kiri.php", $descriptorspec, $pipes);
|
||||||
var_dump($pipes);
|
var_dump($pipes);
|
||||||
|
|||||||
Reference in New Issue
Block a user