]> Cypherpunks repositories - gostls13.git/commit
syscall: allow processes steal a controlling terminal on Linux
authorJulio Montes <julio.montes@intel.com>
Mon, 22 May 2017 15:33:31 +0000 (10:33 -0500)
committerIan Lance Taylor <iant@golang.org>
Wed, 31 May 2017 03:49:48 +0000 (03:49 +0000)
commit673fdea5e798baa98c418cba86cf50c8d80cbc36
treeec3eaf59314cfd07d7b7c3341daadf220a1ea470
parentc6e7cb4a375966f7b034e6dbf439a58ea326104a
syscall: allow processes steal a controlling terminal on Linux

The current implementation of forkAndExecInChild for Linux does not allow
spawned processes steal the controlling terminal from a different session
group. This patch passes 1 as the argument to TIOCSCTTY in order to allow
spawned processes steal controlling terminals.

Fixes #20454

Change-Id: I171b8981509d648b07f89bddc1e9d45cb70e00e6
Reviewed-on: https://go-review.googlesource.com/44343
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/syscall/exec_linux.go