package runnersetup import "golang.org/x/sys/unix" // pidfdAlive opens a process handle and signals it with 0. func pidfdAlive(pid int) error { fd, e := unix.PidfdOpen(pid, 0) if e != nil { return e } defer unix.Close(fd) return unix.PidfdSendSignal(fd, 0, nil, 0) }