mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-28 23:05:50 +00:00
15 lines
241 B
Go
15 lines
241 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package queue
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
// killProcessTree sends SIGKILL to the entire process group on Linux.
|
|
func killProcessTree(p *os.Process) error {
|
|
return syscall.Kill(-p.Pid, syscall.SIGKILL)
|
|
}
|