Use portable version of strerror_r()

FS-6596 --resolve
This commit is contained in:
Travis Cross 2014-06-16 13:45:39 +00:00
parent e7ee4050b2
commit 13e02278a1
1 changed files with 2 additions and 2 deletions

View File

@ -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;