12 lines
396 B
Go
12 lines
396 B
Go
//go:build linux
|
|
|
|
package main
|
|
|
|
import "syscall"
|
|
|
|
// childAttr: a child process (the speech server, a recorder) is killed with the engine, so a crash
|
|
// never leaves a speech server holding a gigabyte of memory. Linux only: Pdeathsig does not exist on
|
|
// macOS or Windows (see procattr_other.go).
|
|
func childAttr() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{Pdeathsig: syscall.SIGKILL}
|
|
}
|