diff options
| author | Ian Lance Taylor <iant@golang.org> | 2025-02-19 17:37:49 -0800 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2025-02-26 09:45:28 -0800 |
| commit | c57e2bd22c2ca4537987b696ec7ad141b8d8e5ed (patch) | |
| tree | 208fa110282c5826dd57c1e427f91a0fad10ca84 /src/syscall/exec_linux.go | |
| parent | 2aaa3889710327925937e4bdfb0392d68a1e1afe (diff) | |
| download | go-c57e2bd22c2ca4537987b696ec7ad141b8d8e5ed.tar.xz | |
[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 <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/syscall/exec_linux.go')
| -rw-r--r-- | src/syscall/exec_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
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))) |
