changeset 24762:bebc295010b8 v8.2.2919

patch 8.2.2919: using ":!command" does not work if it uses posix_spawn() Commit: https://github.com/vim/vim/commit/6a43b37b760347b9a1bedf12e41b458000922969 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 1 20:48:40 2021 +0200 patch 8.2.2919: using ":!command" does not work if it uses posix_spawn() Problem: Using ":!command" does not work if the command uses posix_spawn(). Solution: Do not call ioctl() with TIOCSCTTY. (Felipe Contreras)
author Bram Moolenaar <Bram@vim.org>
date Tue, 01 Jun 2021 21:00:04 +0200
parents 156525f3592b
children 771755ad13d2
files src/os_unix.c src/version.c
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4775,11 +4775,6 @@ mch_call_shell_fork(
 		    // push stream discipline modules
 		    if (options & SHELL_COOKED)
 			setup_slavepty(pty_slave_fd);
-#  ifdef TIOCSCTTY
-		    // Try to become controlling tty (probably doesn't work,
-		    // unless run by root)
-		    ioctl(pty_slave_fd, TIOCSCTTY, (char *)NULL);
-#  endif
 		}
 # endif
 		set_default_child_environment(FALSE);
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2919,
+/**/
     2918,
 /**/
     2917,