diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-02-25 05:21:12 -0500 | 
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-02-25 05:21:12 -0500 | 
| commit | fe050e147d3d1feb023fcd5a49a08d9a707f48f5 (patch) | |
| tree | d5aaf480f1a566c5078f8123b6dbf467f8330a46 | |
| parent | cd457cd2d480fcadb7aaf6bc60c7dab1f937f607 (diff) | |
| download | bw-atari8-tools-fe050e147d3d1feb023fcd5a49a08d9a707f48f5.tar.gz | |
listamsb: complain if pclose() fails.
| -rw-r--r-- | listamsb.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| @@ -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);  } | 
