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 /curs_lib.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 'curs_lib.c')
-rw-r--r-- | curs_lib.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -124,7 +124,8 @@ void mutt_edit_file (const char *editor, const char *data) endwin (); mutt_expand_file_fmt (cmd, sizeof (cmd), editor, data); - mutt_system (cmd); + if (mutt_system (cmd) == -1) + mutt_error (_("Error running \"%s\"!"), cmd); keypad (stdscr, TRUE); clearok (stdscr, TRUE); } @@ -317,9 +318,14 @@ int mutt_do_pager (const char *banner, endwin (); mutt_expand_file_fmt (cmd, sizeof(cmd), Pager, tempfile); - mutt_system (cmd); + if (mutt_system (cmd) == -1) + { + mutt_error (_("Error running \"%s\"!"), cmd); + rc = -1; + } + else + rc = 0; mutt_unlink (tempfile); - rc = 0; } return rc; |