Mercurial > vim
diff src/os_unix.c @ 21992:d9acf1e1c799 v8.2.1545
patch 8.2.1545: ch_logfile() is unclear about closing when forking
Commit: https://github.com/vim/vim/commit/76603baac5a14445d0c41d7eb14144a07288d357
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 30 17:24:37 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Aug 2020 17:30:07 +0200 |
parents | 88070e222e82 |
children | 900737f2ee98 |
line wrap: on
line diff
--- 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))