X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=common%2Fcommon.c;h=dc0e194694ff44490570c8dd6983b99351d31d73;hb=0ad0ac6446aa4490800addafd8219f0f2a968c4d;hp=43b2bf22145c2b014b4f4c2bb4988c0733e37fe6;hpb=7961b29b3aae8dee45748bf66e30a45c76a47272;p=apps%2Fpfixtools.git diff --git a/common/common.c b/common/common.c index 43b2bf2..dc0e194 100644 --- a/common/common.c +++ b/common/common.c @@ -41,9 +41,6 @@ #include "common.h" -sig_atomic_t sigint = false; -sig_atomic_t sighup = false; - bool daemon_process = true; int log_level = LOG_INFO; bool log_syslog = false; @@ -53,15 +50,6 @@ static FILE *pidfile = NULL; void common_sighandler(int sig) { switch (sig) { - case SIGTERM: - case SIGINT: - sigint = true; - return; - - case SIGHUP: - sighup = true; - return; - default: err("Killed (got signal %d)...", sig); exit(-1);