]> Cypherpunks repositories - gostls13.git/commit
runtime: use WCLONE when waiting on pidfd test child
authorMichael Pratt <mpratt@google.com>
Fri, 21 Feb 2025 15:29:09 +0000 (10:29 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 21 Feb 2025 16:57:04 +0000 (08:57 -0800)
commite1e65ae3ee5f977c31f3651233cc7ff2a0b579ca
tree4ccb7852ab6c047bf9770c09dc67e26a88663dc9
parent64d82cd72c222caa93b2f71c5970a00ec4e7929a
runtime: use WCLONE when waiting on pidfd test child

As of CL 650835, the pidfd test child no longer sends SIGCHLD on exit.
Per clone(2), "If [the child termination] signal is specified as
anything other than SIGCHLD, then the parent process must specify the
__WALL or __WCLONE options when waiting for the child with wait(2)."

Align with this requirement.

For #71828.

Change-Id: I6a6a636c739e4a59abe1533fe429a433e8588939
Reviewed-on: https://go-review.googlesource.com/c/go/+/651415
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/syscall/exec_linux.go