parent
e7ee4050b2
commit
13e02278a1
|
@ -402,13 +402,13 @@ static void reincarnate_protect(char **argv) {
|
|||
if (execv(argv[0], argv) == -1) {
|
||||
char buf[256];
|
||||
fprintf(stderr, "Reincarnate execv() failed: %d %s\n", errno,
|
||||
strerror_r(errno, buf, sizeof(buf)));
|
||||
switch_strerror_r(errno, buf, sizeof(buf)));
|
||||
}
|
||||
fprintf(stderr, "Trying reincarnate-reexec plan B...\n");
|
||||
if (execvp(argv[0], argv) == -1) {
|
||||
char buf[256];
|
||||
fprintf(stderr, "Reincarnate execvp() failed: %d %s\n", errno,
|
||||
strerror_r(errno, buf, sizeof(buf)));
|
||||
switch_strerror_r(errno, buf, sizeof(buf)));
|
||||
}
|
||||
fprintf(stderr, "Falling back to normal reincarnate behavior...\n");
|
||||
goto refork;
|
||||
|
|
Loading…
Reference in New Issue