X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=common.c;h=d00461b827761c2d526fb9f4cd075b1b6a2319eb;hb=52534a99b8e1644411383e8406519add7984cee9;hp=3addd0e3d0e6cec7f8656aec9cbbccb1f3f220cb;hpb=93ab2b3dc7658be50317765792a8720c54b29807;p=apps%2Fpfixtools.git diff --git a/common.c b/common.c index 3addd0e..d00461b 100644 --- a/common.c +++ b/common.c @@ -47,18 +47,9 @@ static FILE *pidfile = NULL; void common_sighandler(int sig) { - static time_t lastintr = 0; - time_t now = time(NULL); - switch (sig) { case SIGINT: - if (sigint) { - if (now - lastintr >= 1) - break; - } else { - lastintr = now; - sigint = true; - } + sigint = true; return; case SIGHUP: