diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-05-30 15:25:57 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-06-14 16:12:10 -0400 |
commit | e23dd66fa9cedc8f4cc35aeedfa74194b19e9c5b (patch) | |
tree | b1d7778d450a276ac73dc2e8229e8767fcaa29a0 /pkg/domain | |
parent | da4027c6550898045d93ac61d1b8b3e990bf5c73 (diff) | |
download | podman-e23dd66fa9cedc8f4cc35aeedfa74194b19e9c5b.tar.gz podman-e23dd66fa9cedc8f4cc35aeedfa74194b19e9c5b.tar.bz2 podman-e23dd66fa9cedc8f4cc35aeedfa74194b19e9c5b.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/domain')
-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 { |