Skip to content

Commit 6a43b37

Browse files
committed
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)
1 parent 3d9c4ee commit 6a43b37

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/os_unix.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4775,11 +4775,6 @@ mch_call_shell_fork(
47754775
// push stream discipline modules
47764776
if (options & SHELL_COOKED)
47774777
setup_slavepty(pty_slave_fd);
4778-
# ifdef TIOCSCTTY
4779-
// Try to become controlling tty (probably doesn't work,
4780-
// unless run by root)
4781-
ioctl(pty_slave_fd, TIOCSCTTY, (char *)NULL);
4782-
# endif
47834778
}
47844779
# endif
47854780
set_default_child_environment(FALSE);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2919,
753755
/**/
754756
2918,
755757
/**/

0 commit comments

Comments
 (0)