Fix child processes exiting
This commit is contained in:
@@ -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__));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user