1
0
mirror of https://github.com/danog/process.git synced 2024-11-26 20:24:43 +01:00
This commit is contained in:
Niklas Keller 2017-12-05 09:19:44 +01:00
parent 67f0e56543
commit ff7d7612bb

View File

@ -26,7 +26,7 @@ Amp\Loop::run(function () {
foreach ($hosts as $host) {
$command = \DIRECTORY_SEPARATOR === "\\"
? "ping -n 5 {$host}"
: "ping -c 5 {$host}"
: "ping -c 5 {$host}";
$process = new Process($command);
$process->start();
$promises[] = new Amp\Coroutine(show_process_output($process));