Fix child processes exiting
This commit is contained in:
parent
ccab973b4a
commit
6027ce52ab
@ -103,6 +103,7 @@ final class Binkp extends BaseProtocol
|
|||||||
$this->session(self::SESSION_BINKP,$client,(new Address));
|
$this->session(self::SESSION_BINKP,$client,(new Address));
|
||||||
$this->client->close();
|
$this->client->close();
|
||||||
Log::info(sprintf('%s: = End - Connection closed [%s]',__METHOD__,$client->address_remote));
|
Log::info(sprintf('%s: = End - Connection closed [%s]',__METHOD__,$client->address_remote));
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -83,6 +83,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
|||||||
$this->session(self::SESSION_AUTO,$client,(new Address));
|
$this->session(self::SESSION_AUTO,$client,(new Address));
|
||||||
$this->client->close();
|
$this->client->close();
|
||||||
Log::info(sprintf('%s: = End - Connection closed [%s]',__METHOD__,$client->address_remote));
|
Log::info(sprintf('%s: = End - Connection closed [%s]',__METHOD__,$client->address_remote));
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -84,11 +84,11 @@ final class SocketServer {
|
|||||||
$this->loop();
|
$this->loop();
|
||||||
socket_close($this->server);
|
socket_close($this->server);
|
||||||
|
|
||||||
Log::info(sprintf('CLosed [%s:%d]',$this->bind,$this->port),['m'=>__METHOD__]);
|
Log::info(sprintf('Closed [%s:%d]',$this->bind,$this->port),['m'=>__METHOD__]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manage and execute incoming connecitons
|
* Manage and execute incoming connections
|
||||||
*
|
*
|
||||||
* @throws SocketException
|
* @throws SocketException
|
||||||
*/
|
*/
|
||||||
|
@ -30,6 +30,7 @@ class StartServer extends Command
|
|||||||
* Execute the console command.
|
* Execute the console command.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
@ -53,6 +54,7 @@ class StartServer extends Command
|
|||||||
$children = collect();
|
$children = collect();
|
||||||
|
|
||||||
Log::debug(sprintf('%s:+ Starting Servers...',__METHOD__));
|
Log::debug(sprintf('%s:+ Starting Servers...',__METHOD__));
|
||||||
|
pcntl_signal(SIGCHLD,SIG_IGN);
|
||||||
|
|
||||||
foreach ($start as $item => $config) {
|
foreach ($start as $item => $config) {
|
||||||
Log::debug(sprintf('%s: - Starting: [%s]',__METHOD__,$item));
|
Log::debug(sprintf('%s: - Starting: [%s]',__METHOD__,$item));
|
||||||
|
Loading…
Reference in New Issue
Block a user