Skip to content

Commit

Permalink
Merge pull request #15 from totten/master-cat-hang
Browse files Browse the repository at this point in the history
StartCommand - Close pipes explicitly
  • Loading branch information
totten authored Feb 8, 2023
2 parents 41340ae + fd68820 commit e6bf88c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ protected function execute(InputInterface $input, OutputInterface $output) {
Fork::daemon(function() use ($svc) {
// $pipes = Fork::redirectStdIo($svc->log_file);
// $output = new StreamOutput($pipes[1]);
// Fork::closeStdio();
Fork::closeStdio();
// ^^ Ex: "loco start | cat" - closing ensures that parent can exit normally.
$output = new NullOutput();

// return $svc->run($output);
Expand Down

0 comments on commit e6bf88c

Please sign in to comment.