]> Cypherpunks repositories - gostls13.git/commit
os: use the correct constant for P_PID on NetBSD
authorBryan C. Mills <bcmills@google.com>
Wed, 12 Oct 2022 17:29:01 +0000 (13:29 -0400)
committerBryan Mills <bcmills@google.com>
Wed, 12 Oct 2022 19:58:47 +0000 (19:58 +0000)
commit9ec69908aaacebb0796807afa55f7682db15afb4
tree0de832a6bda205530fd63924af677c23713b467b
parent4a4de1416654ec0c3cd6100fddb90a228657216a
os: use the correct constant for P_PID on NetBSD

Dragonfly and FreeBSD both used numerical values for these constants
chosen to be the same as on Solaris. For some reason, NetBSD did not,
and happens to interpret value 0 as P_ALL instead of P_PID
(see https://github.com/NetBSD/src/blob/3323ceb7822f98b3d2693aa26fd55c4ded6d8ba4/sys/sys/idtype.h#L43-L44).

Using the correct value for P_PID should cause wait6 to wait for the
correct process, which may help to avoid the deadlocks reported in

For #50138.
Updates #13987.

Change-Id: I0eacd1faee4a430d431fe48f9ccf837f49c42f39
Reviewed-on: https://go-review.googlesource.com/c/go/+/442478
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/os/wait_wait6.go