]> Cypherpunks repositories - gostls13.git/commit
syscall: document exact meaning of Ctty field
authorIan Lance Taylor <iant@golang.org>
Fri, 24 Apr 2020 04:15:03 +0000 (21:15 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 May 2020 04:53:11 +0000 (04:53 +0000)
commit07cb63aae5629213a0f5c484a8d79ae4bc1026e6
treec91cef0544f358eed3ac52a4f88a42ed3ace68b8
parent45d288718d2b94b83cc546c1a2cd8fb6fe503138
syscall: document exact meaning of Ctty field

The Ctty field is a child descriptor number when Setctty is set,
but a parent descriptor when Foreground is set. This is absurd
but changing either behavior breaks existing programs.

With this change we at least document how it works.

For #29458

Change-Id: If9cf0a1a1e6ed0d4a4edae5043016d5b4ee3308b
Reviewed-on: https://go-review.googlesource.com/c/go/+/229768
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/syscall/exec_bsd.go
src/syscall/exec_darwin.go
src/syscall/exec_libc.go
src/syscall/exec_linux.go