oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package runnersetup
2
3import "golang.org/x/sys/unix"
4
5// pidfdAlive opens a process handle and signals it with 0.
6func pidfdAlive(pid int) error {
7 fd, e := unix.PidfdOpen(pid, 0)
8 if e != nil {
9 return e
10 }
11 defer unix.Close(fd)
12 return unix.PidfdSendSignal(fd, 0, nil, 0)
13}
14