0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1545: ch_logfile() is unclear about closing when forking

Problem:    ch_logfile() is unclear about closing when forking.
Solution:   Adjust the log messages.
This commit is contained in:
Bram Moolenaar
2020-08-30 17:24:37 +02:00
parent 207f009326
commit 76603baac5
3 changed files with 9 additions and 2 deletions

View File

@@ -4683,8 +4683,10 @@ mch_call_shell_fork(
# ifdef FEAT_JOB_CHANNEL
if (ch_log_active())
// close the log file in the child
{
ch_log(NULL, "closing channel log in the child process");
ch_logfile((char_u *)"", (char_u *)"");
}
# endif
if (!show_shell_mess || (options & SHELL_EXPAND))