summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-02-10 21:19:34 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-02-10 21:19:34 +0000
commit15739ddd2345d227a16d18a3abfb740ae7c2ec0f (patch)
treebd608a8b9771d60c785a9cc84e297748960fe33d /attach.c
parent25a768b966efe0f5570d6b6356b9752add6efb49 (diff)
patch.mutt-0.95.1i.ld.signals.1: A major redesign of how child
processes are invoked. From Liviu.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/attach.c b/attach.c
index da283f24..41311b8e 100644
--- a/attach.c
+++ b/attach.c
@@ -124,9 +124,13 @@ int mutt_compose_attachment (BODY *a)
}
else
{
+ int r;
+
endwin ();
- mutt_system (command);
- if (entry->composetypecommand)
+ if ((r = mutt_system (command)) == -1)
+ mutt_error (_("Error running \"%s\"!"), command);
+
+ if (r != -1 && entry->composetypecommand)
{
BODY *b;
FILE *fp, *tfp;
@@ -248,7 +252,8 @@ int mutt_edit_attachment (BODY *a)
else
{
endwin ();
- mutt_system (command);
+ if (mutt_system (command) == -1)
+ mutt_error (_("Error running \"%s\"!"), command);
}
}
}