posix/Runner::kill not worked
Ekstazi opened this issue · comments
Furtuna Maxim commented
some example code:
$process = yield Amp\Parallel\Context::run('test.php');
$process->kill();
test.php:
sleep(30);
As i can see on linux systems(ps -aux | grep php
) test,php keep runned and detached after end of main script.
This happen because kill only terminate sh but keep php detached.
Furtuna Maxim commented
Php bug described here:
http://php.net/manual/ru/function.proc-terminate.php
Gabriel Ostrolucký commented
Aaron Piotrowski commented
@ostrolucky I was waiting for @Ekstazi to update the PR to remove the change he made to the travis config… but that didn't happen and I forgot about it. I'll update it myself and merge it.
Furtuna Maxim commented
@trowski Sorry. I didn't find way to fix seg fault yet... Can you help me with it ?