diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-05-30 15:25:57 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-05-30 15:29:08 +0200 |
commit | a6f8cad545fa3242a2778c9a0d25da4da0a51ce2 (patch) | |
tree | eb444d79bb4879acd5afe20c4b8581cea316eab0 /pkg | |
parent | a550af260a536aeaa35e4b8810971748a6f16f5f (diff) | |
download | podman-a6f8cad545fa3242a2778c9a0d25da4da0a51ce2.tar.gz podman-a6f8cad545fa3242a2778c9a0d25da4da0a51ce2.tar.bz2 podman-a6f8cad545fa3242a2778c9a0d25da4da0a51ce2.zip |
fix bad import path for cmd/podman/utils
Libpod or packages under /pkg should never import from /cmd/...
This will quickly result in import cycles and weird code paths.
Also there is no reason to use this special code we can just use
syscall.SIGHUB as SIGNAL.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/infra/runtime_libpod.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/domain/infra/runtime_libpod.go b/pkg/domain/infra/runtime_libpod.go index ac557e9de..daa6f0cbf 100644 --- a/pkg/domain/infra/runtime_libpod.go +++ b/pkg/domain/infra/runtime_libpod.go @@ -9,9 +9,9 @@ import ( "os" "os/signal" "sync" + "syscall" "github.com/containers/common/pkg/cgroups" - "github.com/containers/podman/v4/cmd/podman/utils" "github.com/containers/podman/v4/libpod" "github.com/containers/podman/v4/pkg/domain/entities" "github.com/containers/podman/v4/pkg/namespaces" @@ -375,7 +375,7 @@ func ParseIDMapping(mode namespaces.UsernsMode, uidMapSlice, gidMapSlice []strin func StartWatcher(rt *libpod.Runtime) { // Setup the signal notifier ch := make(chan os.Signal, 1) - signal.Notify(ch, utils.SIGHUP) + signal.Notify(ch, syscall.SIGHUP) go func() { for { |