Fix child processes exiting

This commit is contained in:
Deon George
2021-07-20 00:23:41 +10:00
parent ccab973b4a
commit 6027ce52ab
4 changed files with 7 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ class StartServer extends Command
* Execute the console command.
*
* @return mixed
* @throws \Exception
*/
public function handle()
{
@@ -53,6 +54,7 @@ class StartServer extends Command
$children = collect();
Log::debug(sprintf('%s:+ Starting Servers...',__METHOD__));
pcntl_signal(SIGCHLD,SIG_IGN);
foreach ($start as $item => $config) {
Log::debug(sprintf('%s: - Starting: [%s]',__METHOD__,$item));
@@ -97,6 +99,6 @@ class StartServer extends Command
}
// Done
Log::debug(sprintf('%s:= Finished.',__METHOD__));
Log::debug(sprintf('%s: = Finished.',__METHOD__));
}
}