From: Michael Elkins Date: Mon, 9 Sep 2002 19:24:54 +0000 (+0000) Subject: Fixing #1330. X-Git-Tag: mutt-1-5-2-rel~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4af8ea13ba216e572b5d0c3741076bd589e46c2;p=mutt Fixing #1330. --- diff --git a/attach.c b/attach.c index da5a3cc6..4e9bf5e6 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; }