1
0
mirror of https://github.com/danog/process.git synced 2024-12-12 09:09:44 +01:00
process/test/bin/worker.php
Aaron Piotrowski 986ff9f8a6
Fix code style
2017-12-13 20:33:28 -06:00

17 lines
217 B
PHP

<?php
$content = fread(STDIN, 1024);
$command = explode(" ", $content);
if (count($command) !== 2) {
exit(1);
}
if ($command[0] === "exit") {
echo str_repeat(".", (int) $command[1]);
exit;
}
exit(1);