Only add the handover parameter on restart if it's not already set
This commit is contained in:
parent
58bcff27d2
commit
03706ed5b2
@ -275,8 +275,10 @@ retry:
|
||||
LOGWARNING("Failed to send_procmsg to connector");
|
||||
} else if (cmdmatch(buf, "restart")) {
|
||||
if (!fork()) {
|
||||
ckp->initial_args[ckp->args++] = strdup("-H");
|
||||
ckp->initial_args[ckp->args] = NULL;
|
||||
if (!ckp->handover) {
|
||||
ckp->initial_args[ckp->args++] = strdup("-H");
|
||||
ckp->initial_args[ckp->args] = NULL;
|
||||
}
|
||||
execv(ckp->initial_args[0], (char *const *)ckp->initial_args);
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user