aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_unix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-18 18:36:02 +0100
committerGitHub <noreply@github.com>2018-03-18 18:36:02 +0100
commit4e02f1ab871f30d80250537877924d522497493b (patch)
tree0a054babaa09767e5c31d7f485a7901e29188b35 /src/nvim/os/pty_process_unix.c
parent0848add4885adaa61218cc5394dc23d92c5812df (diff)
parentae409b5042abdbec67305a063cf921ddffcce0c8 (diff)
downloadrneovim-4e02f1ab871f30d80250537877924d522497493b.tar.gz
rneovim-4e02f1ab871f30d80250537877924d522497493b.tar.bz2
rneovim-4e02f1ab871f30d80250537877924d522497493b.zip
Merge #8107 'jobs: separate process-group'
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r--src/nvim/os/pty_process_unix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c
index 855ca2ae47..dfe2cfbb8d 100644
--- a/src/nvim/os/pty_process_unix.c
+++ b/src/nvim/os/pty_process_unix.c
@@ -145,8 +145,12 @@ void pty_process_teardown(Loop *loop)
uv_signal_stop(&loop->children_watcher);
}
-static void init_child(PtyProcess *ptyproc) FUNC_ATTR_NONNULL_ALL
+static void init_child(PtyProcess *ptyproc)
+ FUNC_ATTR_NONNULL_ALL
{
+ // New session/process-group. #6530
+ setsid();
+
unsetenv("COLUMNS");
unsetenv("LINES");
unsetenv("TERMCAP");