From fe050e147d3d1feb023fcd5a49a08d9a707f48f5 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 25 Feb 2025 05:21:12 -0500 Subject: listamsb: complain if pclose() fails. --- listamsb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3