golang/src/os/signal
Joel Sing fba54f6345 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>
2024-03-20 10:09:15 +00:00
..
doc.go os: add available godoc link 2024-02-26 21:33:12 +00:00
example_test.go os/signal: improve documentation for the Notify function 2017-11-01 18:38:23 +00:00
example_unix_test.go os/signal: remove some arbitrary timeouts in tests 2023-11-09 15:34:56 +00:00
sig.s all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
signal.go os: add available godoc link 2024-02-26 21:33:12 +00:00
signal_cgo_test.go os/signal: avoid calling ioctl via syscall.Syscall on BSDs 2024-03-20 10:09:15 +00:00
signal_linux_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
signal_plan9.go os/signal, runtime: remove runtime sigqueue initialization 2020-04-01 23:55:34 +00:00
signal_plan9_test.go all: add internal/itoa package 2021-03-14 17:56:50 +00:00
signal_test.go os/signal: remove some arbitrary timeouts in tests 2023-11-09 15:34:56 +00:00
signal_unix.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
signal_windows_test.go os: use testenv.Command instead of exec.Command in tests 2023-02-21 23:07:55 +00:00