then i type ctrl-c, i found the signal only be caught by drogon's signal function, main thread signal handler function not be called.
by the way, my program needs a non-block async request stream class, each class object need a EventLoopThreadPool. so i put the app().run() in a seperate thread.
Drogon handles SIGINT by default, you could set the handle_sig_term option to false in the configuration file or call the disableSigtermHandling method.
I want to catch SIGINT signal in my main thread. I do this:
then i type ctrl-c, i found the signal only be caught by drogon's signal function, main thread signal handler function not be called.
by the way, my program needs a non-block async request stream class, each class object need a EventLoopThreadPool. so i put the app().run() in a seperate thread.
could you help on this?