MCPcopy
hub / github.com/kubernetes/test-infra / getGroupPid

Function getGroupPid

kubetest/process/process.go:382–389  ·  view source on GitHub ↗

getGroupPid gets the process group to kill the entire main/child process if Getpgid return error use the current process Pid

(pid int)

Source from the content-addressed store, hash-verified

380// getGroupPid gets the process group to kill the entire main/child process
381// if Getpgid return error use the current process Pid
382func getGroupPid(pid int) int {
383 pgid, err := syscall.Getpgid(pid)
384 if err != nil {
385 log.Printf("Failed to get the group process from %v: %v", pid, err)
386 return pid
387 }
388 return pgid
389}

Callers 2

FinishRunningMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected