From c57e2bd22c2ca4537987b696ec7ad141b8d8e5ed Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 19 Feb 2025 17:37:49 -0800 Subject: [release-branch.go1.23] syscall: don't send child signal when testing pidfd Avoid a spurious SIGCHLD the first time we start a process. For #71828 Fixes #71848 Change-Id: I744100d21bf6aaaaafc99bc5eec9f9f807a50682 Reviewed-on: https://go-review.googlesource.com/c/go/+/651055 Reviewed-by: Michael Knyszek Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI --- src/syscall/exec_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/syscall/exec_linux.go') diff --git a/src/syscall/exec_linux.go b/src/syscall/exec_linux.go index dfd9a8368a..e8ba342954 100644 --- a/src/syscall/exec_linux.go +++ b/src/syscall/exec_linux.go @@ -803,7 +803,7 @@ func os_checkClonePidfd() error { // //go:noinline func doCheckClonePidfd(pidfd *int32) (pid uintptr, errno Errno) { - flags := uintptr(CLONE_VFORK|CLONE_VM|CLONE_PIDFD|SIGCHLD) + flags := uintptr(CLONE_VFORK | CLONE_VM | CLONE_PIDFD) if runtime.GOARCH == "s390x" { // On Linux/s390, the first two arguments of clone(2) are swapped. pid, errno = rawVforkSyscall(SYS_CLONE, 0, flags, uintptr(unsafe.Pointer(pidfd))) -- cgit v1.3