anti-koerper / antikoerper

4 stars 2 forks source link

USR1 should reload the config and re-start the loop #27

Open TheNeikos opened 8 years ago

TheNeikos commented 8 years ago

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.)