github.com/nalind/docker@v1.5.0/pkg/reexec/command_linux.go (about) 1 // +build linux 2 3 package reexec 4 5 import ( 6 "os/exec" 7 "syscall" 8 ) 9 10 func Command(args ...string) *exec.Cmd { 11 return &exec.Cmd{ 12 Path: Self(), 13 Args: args, 14 SysProcAttr: &syscall.SysProcAttr{ 15 Pdeathsig: syscall.SIGTERM, 16 }, 17 } 18 }