From fa8b0b0b6f3710992fd1f5662ccf754c4392881f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 12 Jun 2014 23:05:48 +1000 Subject: [PATCH] Unnecessary sleep now --- src/ckpool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ckpool.c b/src/ckpool.c index fd055110..de3ad49c 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -556,10 +556,8 @@ static void sighandler(int sig) join_pthread(ckp->pth_watchdog); if (sig != 9) { - /* Wait a second, then send SIGTERM */ - sleep(1); __shutdown_children(ckp, SIGTERM); - /* Wait another second, then send SIGKILL */ + /* Wait a second, then send SIGKILL */ sleep(1); __shutdown_children(ckp, SIGKILL); pthread_cancel(ckp->pth_listener);