diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-10 21:19:34 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-10 21:19:34 +0000 |
commit | 15739ddd2345d227a16d18a3abfb740ae7c2ec0f (patch) | |
tree | bd608a8b9771d60c785a9cc84e297748960fe33d /attach.c | |
parent | 25a768b966efe0f5570d6b6356b9752add6efb49 (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.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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); } } } |