Closed
Description
Hello,
I'm using Process to watch a log and stop when a specific string is seen in it. It looks like this :
$process = new Process('tail -f /var/log/doge.log');
$process->run(function ($type, $buffer) use ($process) {
if (strpos($buffer, 'some text to wait for') !== false) {
$process->stop();
}
});
It works but when stopping the process I'm getting this :
[Symfony\Component\Process\Exception\RuntimeException]
The process has been signaled with signal "15".
Maybe we should'nt throw this exception when stop
has been explicitly called.