summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2018-07-23 12:32:14 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-07-24 10:33:34 (GMT)
commita27f84fe24d5171485ef1dec182ddd5e0e8908fc (patch) (side-by-side diff)
treef025d3a2f6837952f4a046e3e9bdb5af007e1b0d /src
parent0e6577c85747752ebc7077a685b5f3c3a6f0a351 (diff)
downloadmailfromd-a27f84fe24d5171485ef1dec182ddd5e0e8908fc.tar.gz
mailfromd-a27f84fe24d5171485ef1dec182ddd5e0e8908fc.tar.bz2
Bugfixes
* elisp/mfl-mode.el: Fix byte-compilation. * git2chg.awk: Ignore git-svn-id: * src/pp.c (pp_extrn_shutdown): Report errors.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/pp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pp.c b/src/pp.c
index cadc867..cd5e723 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.