diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-01 20:48:40 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-01 20:48:40 +0200 |
commit | 6a43b37b760347b9a1bedf12e41b458000922969 (patch) | |
tree | 0fd3ac2573739d0769d72e2378929679c91f1208 | |
parent | 3d9c4eefe656ee8bf58c0496a48bd56bac180056 (diff) | |
download | vim-git-6a43b37b760347b9a1bedf12e41b458000922969.tar.gz |
patch 8.2.2919: using ":!command" does not work if it uses posix_spawn()v8.2.2919
Problem: Using ":!command" does not work if the command uses posix_spawn().
Solution: Do not call ioctl() with TIOCSCTTY. (Felipe Contreras)
-rw-r--r-- | src/os_unix.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 20c61106f..0a4f0e698 100644 --- 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); diff --git a/src/version.c b/src/version.c index c1fdb649d..a9a7b29f5 100644 --- 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, |