Browse Source

Unnecessary sleep now

master
Con Kolivas 11 years ago
parent
commit
fa8b0b0b6f
  1. 4
      src/ckpool.c

4
src/ckpool.c

@ -556,10 +556,8 @@ static void sighandler(int sig)
join_pthread(ckp->pth_watchdog); join_pthread(ckp->pth_watchdog);
if (sig != 9) { if (sig != 9) {
/* Wait a second, then send SIGTERM */
sleep(1);
__shutdown_children(ckp, SIGTERM); __shutdown_children(ckp, SIGTERM);
/* Wait another second, then send SIGKILL */ /* Wait a second, then send SIGKILL */
sleep(1); sleep(1);
__shutdown_children(ckp, SIGKILL); __shutdown_children(ckp, SIGKILL);
pthread_cancel(ckp->pth_listener); pthread_cancel(ckp->pth_listener);

Loading…
Cancel
Save