diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1993-10-09 00:48:26 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1993-10-09 00:48:26 +0000 |
| commit | b5d3f86c3ff9f7ecf71983a95ef2d98d6878aaaf (patch) | |
| tree | f3eb30f698d7b0a5a8ecf236d3c4d26dd3b79fca /gnu | |
| parent | 11851b0ee1b4f3a165c45eea2d8617c2365175c5 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/lib/util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/lib/util.c b/gnu/usr.bin/man/lib/util.c index f462e3e2399d2..e8253a8a993ff 100644 --- a/gnu/usr.bin/man/lib/util.c +++ b/gnu/usr.bin/man/lib/util.c @@ -19,6 +19,7 @@ #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/wait.h> #ifdef STDC_HEADERS #include <stdlib.h> @@ -137,8 +138,12 @@ do_system_command (command) else status = system (command); - if (status) + if (WIFSIGNALED(status)) return 0; + else if (WEXITSTATUS(status)) { + gripe_system_command (status); + return 0; + } else return 1; } |
