Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add a function to check if the server is still running after signal is catched #7
Since you already installed a SIGTERM handler in your TCP server, the host application cannot install another signal handler for SIGTERM. The TCP server class should make public a function say for example is_server_running() which return true if the underlying is serving request or false if a signal is cached and the server will no longer serve request. That way, we can run our cleaning routines without erasing your SIGTERM handler.
Sounds interesting. Notify us when this is done. Thanks Symisc Systems, SUARL…
-----Original Message----- From: mongols <firstname.lastname@example.org> To: webcpp/mongols <email@example.com> Cc: Symisc Systems <firstname.lastname@example.org>, Author <email@example.com> Sent: Mon, 09 Sep 2019 3:16 Subject: Re: [webcpp/mongols] Add a function to check if the server is still running after signal is catched (#7) If you need run a shutdown function or some cleaning routines , I can add a functional parameter for the `run` method.The functional parameter will be called when the tcp server is stopped.
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: #7 (comment)