summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2002-09-09 19:24:54 +0000
committerMichael Elkins <me@sigpipe.org>2002-09-09 19:24:54 +0000
commitf4af8ea13ba216e572b5d0c3741076bd589e46c2 (patch)
treebf4f5446556f540480c25346da4371f93e1e23b8 /attach.c
parent8f96dfd34a6a7a6b4c6e48d20e59fcd244a6e927 (diff)
Fixing #1330.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c8
1 files changed, 7 insertions, 1 deletions
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;
}