]> granicus.if.org Git - mutt/commitdiff
Fixing #1330.
authorMichael Elkins <me@sigpipe.org>
Mon, 9 Sep 2002 19:24:54 +0000 (19:24 +0000)
committerMichael Elkins <me@sigpipe.org>
Mon, 9 Sep 2002 19:24:54 +0000 (19:24 +0000)
attach.c

index da5a3cc6da54eef7e60fed3d06ff3c1a3de5fca5..4e9bf5e6cc96e05b8e6191de5368e832fbe6868b 100644 (file)
--- 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;
 }