mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 18:13:27 +00:00
Use portable version of strerror_r()
FS-6596 --resolve
This commit is contained in:
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…
x
Reference in New Issue
Block a user