Skip to content

Commit

Permalink
StartCommand - Close pipes explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Feb 8, 2023
1 parent 41340ae commit fd68820
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 fd68820

Please sign in to comment.