diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pp.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -417,6 +417,20 @@ pp_extrn_shutdown(FILE *file, pid_t pid) int status; fclose(file); waitpid(pid, &status, 0); + if (WIFEXITED(status)) { + status = WEXITSTATUS(status); + if (status) { + mu_error(_("preprocessor exited with status %d"), + status); + } + } else if (WIFSIGNALED(status)) { + mu_error(_("preprocessor terminated on signal %d"), + WTERMSIG(status)); + } else if (WIFSTOPPED(status)) { + mu_error("%s", _("preprocessor stopped")); + } else { + mu_error("%s", _("preprocessor terminated abnormally")); + } } static int |