diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-07-23 12:32:14 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-07-24 13:33:34 +0300 |
commit | a27f84fe24d5171485ef1dec182ddd5e0e8908fc (patch) | |
tree | f025d3a2f6837952f4a046e3e9bdb5af007e1b0d /src | |
parent | 0e6577c85747752ebc7077a685b5f3c3a6f0a351 (diff) | |
download | mailfromd-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')
-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 |