mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* subshell.c (exit_subshell): Do not blindly perform cleanup.
This commit is contained in:
parent
b2b0d33105
commit
7a0f4c45ef
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user