Function setTermSignalHandler

Synopsis

#include <lib/inc/drogon/HttpAppFramework.h>

virtual HttpAppFramework & setTermSignalHandler(const std::function< void()> &handler)=0

Description

Set the TERM Signal Handler. This method provides a way to users for exiting program gracefully. When the TERM signal is received after app().run() is called, the handler is invoked. Drogon uses a default signal handler for the TERM signal, which calls the 'app().quit()' method when the TERM signal is received.

Parameters:

handler -

Return
HttpAppFramework&

Source

Line 1040 in lib/inc/drogon/HttpAppFramework.h.






Add Discussion as Guest

Log in to DocsForge