]> Cypherpunks repositories - gostls13.git/commit
os/signal: avoid calling ioctl via syscall.Syscall on BSDs
authorJoel Sing <joel@sing.id.au>
Mon, 6 Nov 2023 13:39:27 +0000 (00:39 +1100)
committerJoel Sing <joel@sing.id.au>
Wed, 20 Mar 2024 10:09:15 +0000 (10:09 +0000)
commitfba54f6345449586518039043ab38df337c25146
treebb9fbd0f197f752a30ca4ed35c9f8039aa83e867
parentf94d82b2c03c756f1d8893dc0282e9608e7d32a1
os/signal: avoid calling ioctl via syscall.Syscall on BSDs

Provide appropriate implementations of internal/syscall/unix.Tcsetpgrp
and use this for runSessionLeader in os/signal/signal_cgo_test.go.
This avoids calling syscall.Syscall with SYS_IOCTL on BSDs.

Updates #59667
Updates #63900

Change-Id: Ifa4696bba9f1eb68e81e7103f030bc254adaf0af
Reviewed-on: https://go-review.googlesource.com/c/go/+/540020
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/internal/syscall/unix/tcsetpgrp_bsd.go [new file with mode: 0644]
src/internal/syscall/unix/tcsetpgrp_linux.go [new file with mode: 0644]
src/os/signal/signal_cgo_test.go