forked from toolshed/abra
fix: use x-platform code for pdeathsig
This might cause the macosx build not to fail, I hope. See https://github.com/docker/cli/tree/v20.10.10/cli/connhelper/commandconn
This commit is contained in:
10
pkg/upstream/commandconn/pdeathsig_linux.go
Normal file
10
pkg/upstream/commandconn/pdeathsig_linux.go
Normal file
@ -0,0 +1,10 @@
|
||||
package commandconn
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func setPdeathsig(cmd *exec.Cmd) {
|
||||
cmd.SysProcAttr.Pdeathsig = syscall.SIGKILL
|
||||
}
|
Reference in New Issue
Block a user