* subshell.c (exit_subshell): Do not blindly perform cleanup.

This commit is contained in:
Andrew V. Samoilov 2005-06-07 09:05:09 +00:00
parent b2b0d33105
commit 7a0f4c45ef
2 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2005-06-07 Pavel Tsekov <ptsekov@gmx.net>
* subshell.c (exit_subshell): Do not blindly perform cleanup.
2005-06-07 Roland Illig <roland.illig@gmx.de>
* view.c (view_ccache_lookup): Replaced the min_nroff_column

View File

@ -650,16 +650,18 @@ exit_subshell (void)
_(" The shell is still active. Quit anyway? "),
0, 2, _("&Yes"), _("&No"));
if (quit && subshell_type == TCSH) {
if (unlink (tcsh_fifo) == -1)
fprintf (stderr, "Cannot remove named pipe %s: %s\r\n",
tcsh_fifo, unix_error_string (errno));
}
if (quit) {
if (subshell_type == TCSH) {
if (unlink (tcsh_fifo) == -1)
fprintf (stderr, "Cannot remove named pipe %s: %s\r\n",
tcsh_fifo, unix_error_string (errno));
}
g_free (subshell_prompt);
g_free (pty_buffer);
subshell_prompt = NULL;
pty_buffer = NULL;
g_free (subshell_prompt);
g_free (pty_buffer);
subshell_prompt = NULL;
pty_buffer = NULL;
}
return quit;
}