getGroupPid gets the process group to kill the entire main/child process if Getpgid return error use the current process Pid
(pid int)
| 380 | // getGroupPid gets the process group to kill the entire main/child process |
| 381 | // if Getpgid return error use the current process Pid |
| 382 | func 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 | } |
no outgoing calls
no test coverage detected