Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
21991:bbca88cd13d5 | 21992:d9acf1e1c799 |
---|---|
4681 reset_signals(); // handle signals normally | 4681 reset_signals(); // handle signals normally |
4682 UNBLOCK_SIGNALS(&curset); | 4682 UNBLOCK_SIGNALS(&curset); |
4683 | 4683 |
4684 # ifdef FEAT_JOB_CHANNEL | 4684 # ifdef FEAT_JOB_CHANNEL |
4685 if (ch_log_active()) | 4685 if (ch_log_active()) |
4686 // close the log file in the child | 4686 { |
4687 ch_log(NULL, "closing channel log in the child process"); | |
4687 ch_logfile((char_u *)"", (char_u *)""); | 4688 ch_logfile((char_u *)"", (char_u *)""); |
4689 } | |
4688 # endif | 4690 # endif |
4689 | 4691 |
4690 if (!show_shell_mess || (options & SHELL_EXPAND)) | 4692 if (!show_shell_mess || (options & SHELL_EXPAND)) |
4691 { | 4693 { |
4692 int fd; | 4694 int fd; |