mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 19:05:32 +00:00
To fix compilation on MacOS. I think actually we want to use this pervasively in our tests on Linux; it doesn't really matter when run inside a transient container, but `PDEATHSIG` is useful for persistent containers (e.g.) toolbox and when running outside of a pid namespace, e.g. on a host system shell directly or in systemd. Signed-off-by: Colin Walters <walters@verbum.org>
13 lines
224 B
Go
13 lines
224 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package main
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
// cmdLifecycleToParentIfPossible tries to exit if the parent process exits (only works on Linux)
|
|
func cmdLifecycleToParentIfPossible(c *exec.Cmd) {
|
|
}
|