Protected _exit by #ifdef.
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -747,7 +747,11 @@ int mu_spawnvp(const char* prog, const char* const av_[], int* stat) | ... | @@ -747,7 +747,11 @@ int mu_spawnvp(const char* prog, const char* const av_[], int* stat) |
747 | sigprocmask (SIG_SETMASK, &savemask, NULL); | 747 | sigprocmask (SIG_SETMASK, &savemask, NULL); |
748 | 748 | ||
749 | execvp (av[0], av); | 749 | execvp (av[0], av); |
750 | exit (127); /* exec error */ | 750 | #ifdef HAVE__EXIT |
751 | _exit (127); /* exec error */ | ||
752 | #else | ||
753 | exit (127); | ||
754 | #endif | ||
751 | } | 755 | } |
752 | else | 756 | else |
753 | { /* parent */ | 757 | { /* parent */ | ... | ... |
-
Please register or sign in to post a comment