X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=main.cpp;h=95a72b83f00440bf92b612a30bdbba208329d9f7;hp=07273141fe04b5ec17bf0e3de7394deb414b501a;hb=dad4769b3bf91bb45f577625c753994131df8a58;hpb=40ed7df894c8645c132a5bea2bfb12a9be2b82ef diff --git a/main.cpp b/main.cpp index 0727314..95a72b8 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include #include #include @@ -214,6 +213,8 @@ bool dry_run_config(const std::string &argv0, const std::string &config_filename int main(int argc, char **argv) { + signal(SIGHUP, hup); + // Parse options. int state_fd = -1; bool test_config = false; @@ -324,8 +325,6 @@ start: stats_thread->run(); } - signal(SIGHUP, hup); - struct timeval server_start; gettimeofday(&server_start, NULL); if (state_fd != -1) {