aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pp.c b/src/pp.c
index cadc867d..cd5e723a 100644
--- a/src/pp.c
+++ b/src/pp.c
@@ -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

Return to:

Send suggestions and report system problems to the System administrator.