MCPcopy
hub / github.com/lxc/incus / PidfdSendSignal

Function PidfdSendSignal

internal/linux/socket_linux_cgo.go:98–105  ·  view source on GitHub ↗

PidfdSendSignal sends a signal to the process referred to by the given pidfd.

(Pidfd int, Signal int, Flags uint32)

Source from the content-addressed store, hash-verified

96
97// PidfdSendSignal sends a signal to the process referred to by the given pidfd.
98func PidfdSendSignal(Pidfd int, Signal int, Flags uint32) error {
99 ret, errno := C.incus_pidfd_send_signal(C.int(Pidfd), C.int(Signal), nil, C.uint32_t(Flags))
100 if ret != 0 {
101 return errno
102 }
103
104 return nil
105}
106
107const (
108 // CLOSE_RANGE_UNSHARE matches CLOSE_RANGE_UNSHARE flag.

Callers 1

HandleMountSyscallMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…