mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-25 12:08:46 +01:00
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com>
20 lines
326 B
Go
20 lines
326 B
Go
//go:build !windows
|
|
|
|
package plugin
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func newSysProcAttr(setpgid bool) *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{Setpgid: setpgid}
|
|
}
|
|
|
|
func sysCallKill(pid int) error {
|
|
return syscall.Kill(pid, syscall.SIGKILL)
|
|
}
|
|
|
|
func sysCallTerm(pid int) error {
|
|
return syscall.Kill(pid, syscall.SIGTERM)
|
|
}
|