From c84ba432029739536d64a7cdbc0a87aec8abee7f Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Mon, 9 Sep 2002 19:24:54 +0000 Subject: [PATCH] Fixing #1330. --- attach.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/attach.c b/attach.c index da5a3cc6d..4e9bf5e6c 100644 --- a/attach.c +++ b/attach.c @@ -715,7 +715,13 @@ bail: if (outfile && *outfile) close (out); - if (rv == 0 || mutt_wait_filter (thepid) != 0 || option (OPTWAITKEY)) + /* + * check for error exit from child process + */ + if (mutt_wait_filter (thepid) != 0) + rv = 0; + + if (rv == 0 || option (OPTWAITKEY)) mutt_any_key_to_continue (NULL); return rv; } -- 2.40.0