mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 11:01:18 +00:00
Some files in integration did not have _test, resulting in lots of complains when running golangci-lint with --tests=false. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
15 lines
269 B
Go
15 lines
269 B
Go
package main
|
|
|
|
import (
|
|
"os/exec"
|
|
"syscall"
|
|
)
|
|
|
|
// cmdLifecycleToParentIfPossible is a thin wrapper around prctl(PR_SET_PDEATHSIG)
|
|
// on Linux.
|
|
func cmdLifecycleToParentIfPossible(c *exec.Cmd) {
|
|
c.SysProcAttr = &syscall.SysProcAttr{
|
|
Pdeathsig: syscall.SIGTERM,
|
|
}
|
|
}
|