]> Cypherpunks repositories - gostls13.git/commit
os: use wait6 to avoid wait/kill race on netbsd
authorTobias Klauser <tklauser@distanz.ch>
Mon, 19 Sep 2022 15:21:20 +0000 (17:21 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 19 Sep 2022 18:44:37 +0000 (18:44 +0000)
commitd74bf73be052851e83fb59a40f47d49f4b890ca3
treed538838bb6d05a7b44cfd5903af4f3870a2f167d
parente283473ebbebf4a80db166e7e852d03c5cff1a61
os: use wait6 to avoid wait/kill race on netbsd

Resend of CL 315281 which was partially reverted by CL 354249 after the
original CL was suspected to cause test failures as reported in #48789.
It seems that both wait4 and wait6 lead to that particular deadlock, so
let's use wait6. That way we at least don't hit #13987 on netbsd.

Updates #13987
For #48789
For #50138

Change-Id: Iadc4a771217b7e9e821502e89afa07036e0dcb6f
Reviewed-on: https://go-review.googlesource.com/c/go/+/431855
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/os/wait_unimp.go
src/os/wait_wait6.go