projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
gnu
/
usr.bin
/
man
/
lib
/
util.c
diff --git
a/gnu/usr.bin/man/lib/util.c
b/gnu/usr.bin/man/lib/util.c
index
b0babed
..
e8253a8
100644
(file)
--- 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 <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#ifdef STDC_HEADERS
#include <stdlib.h>
#ifdef STDC_HEADERS
#include <stdlib.h>
@@
-137,14
+138,12
@@
do_system_command (command)
else
status = system (command);
else
status = system (command);
- /*
- * Ultrix returns 127 for failure. Is this normal?
- */
- if (status == 127)
- {
- gripe_system_command (status);
- return 0;
- }
+ if (WIFSIGNALED(status))
+ return 0;
+ else if (WEXITSTATUS(status)) {
+ gripe_system_command (status);
+ return 0;
+ }
else
return 1;
}
else
return 1;
}