Browse Source

Only add the handover parameter on restart if it's not already set

master
Con Kolivas 10 years ago
parent
commit
03706ed5b2
  1. 2
      src/ckpool.c

2
src/ckpool.c

@ -275,8 +275,10 @@ retry:
LOGWARNING("Failed to send_procmsg to connector"); LOGWARNING("Failed to send_procmsg to connector");
} else if (cmdmatch(buf, "restart")) { } else if (cmdmatch(buf, "restart")) {
if (!fork()) { if (!fork()) {
if (!ckp->handover) {
ckp->initial_args[ckp->args++] = strdup("-H"); ckp->initial_args[ckp->args++] = strdup("-H");
ckp->initial_args[ckp->args] = NULL; ckp->initial_args[ckp->args] = NULL;
}
execv(ckp->initial_args[0], (char *const *)ckp->initial_args); execv(ckp->initial_args[0], (char *const *)ckp->initial_args);
} }
} else { } else {

Loading…
Cancel
Save