mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 19:24:24 +00:00
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,
|
|
}
|
|
}
|