To: vim_dev@googlegroups.com Subject: Patch 7.4.1625 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1625 Problem: Trying to close file descriptor that isn't open. Solution: Check for negative number. Files: src/os_unix.c *** ../vim-7.4.1624/src/os_unix.c 2016-03-19 14:12:44.962091710 +0100 --- src/os_unix.c 2016-03-20 20:53:21.234562434 +0100 *************** *** 5214,5224 **** job->jv_channel = channel; /* ch_refcount was set above */ /* child stdin, stdout and stderr */ ! if (!use_file_for_in) close(fd_in[0]); ! if (!use_file_for_out) close(fd_out[1]); ! if (!use_out_for_err && !use_file_for_err) close(fd_err[1]); if (channel != NULL) { --- 5214,5224 ---- job->jv_channel = channel; /* ch_refcount was set above */ /* child stdin, stdout and stderr */ ! if (!use_file_for_in && fd_in[0] >= 0) close(fd_in[0]); ! if (!use_file_for_out && fd_out[1] >= 0) close(fd_out[1]); ! if (!use_out_for_err && !use_file_for_err && fd_err[1] >= 0) close(fd_err[1]); if (channel != NULL) { *** ../vim-7.4.1624/src/version.c 2016-03-20 20:56:56.040282977 +0100 --- src/version.c 2016-03-20 21:01:12.545564480 +0100 *************** *** 750,751 **** --- 750,753 ---- { /* Add new patch number below this line */ + /**/ + 1625, /**/ -- From "know your smileys": :-& Eating spaghetti /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///