The signal handler would be extremely simple, it would just set the atomic bool to true.
The main loop would check whether the atomic bool is true, in that case the config should be loaded again. (However, commandline options are still to be honored.)
This should be done with an atomic bool.
The signal handler would be extremely simple, it would just set the atomic bool to true.
The main loop would check whether the atomic bool is true, in that case the config should be loaded again. (However, commandline options are still to be honored.)