summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-30 17:24:37 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-30 17:24:37 +0200
commit76603baac5a14445d0c41d7eb14144a07288d357 (patch)
treec346afc0d8a330c31f41d6cfc589897a42f1d2fb /src/os_unix.c
parent207f009326c8f878defde0e594d7d9ed9860106e (diff)
downloadvim-git-76603baac5a14445d0c41d7eb14144a07288d357.tar.gz
patch 8.2.1545: ch_logfile() is unclear about closing when forkingv8.2.1545
Problem: ch_logfile() is unclear about closing when forking. Solution: Adjust the log messages.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 73caa1a3e..b58138bf0 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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))