aboutsummaryrefslogtreecommitdiff
path: root/listamsb.c
diff options
context:
space:
mode:
Diffstat (limited to 'listamsb.c')
-rw-r--r--listamsb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/listamsb.c b/listamsb.c
index 1a0bec9..d21623a 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -281,7 +281,11 @@ int main(int argc, char **argv) {
rv = 2;
}
- if(need_pclose) pclose(outfile);
+ if(need_pclose) {
+ if(pclose(outfile) != 0) {
+ die("a8cat child process failed, do you have a8cat on your PATH?");
+ }
+ }
exit(rv);
}