aboutsummaryrefslogtreecommitdiff
path: root/listamsb.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-02-25 05:21:12 -0500
committerB. Watson <urchlay@slackware.uk>2025-02-25 05:21:12 -0500
commitfe050e147d3d1feb023fcd5a49a08d9a707f48f5 (patch)
treed5aaf480f1a566c5078f8123b6dbf467f8330a46 /listamsb.c
parentcd457cd2d480fcadb7aaf6bc60c7dab1f937f607 (diff)
downloadbw-atari8-tools-fe050e147d3d1feb023fcd5a49a08d9a707f48f5.tar.gz
listamsb: complain if pclose() fails.
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);
}