mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
19 lines
235 B
Go
19 lines
235 B
Go
|
// +build linux
|
||
|
|
||
|
package reexec
|
||
|
|
||
|
import (
|
||
|
"os/exec"
|
||
|
"syscall"
|
||
|
)
|
||
|
|
||
|
func Command(args ...string) *exec.Cmd {
|
||
|
return &exec.Cmd{
|
||
|
Path: Self(),
|
||
|
Args: args,
|
||
|
SysProcAttr: &syscall.SysProcAttr{
|
||
|
Pdeathsig: syscall.SIGTERM,
|
||
|
},
|
||
|
}
|
||
|
}
|