summaryrefslogtreecommitdiffstats
path: root/curs_lib.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 /curs_lib.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 'curs_lib.c')
-rw-r--r--curs_lib.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/curs_lib.c b/curs_lib.c
index 0d47e4c8..a35d4a55 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -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;