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 /cmd/podman/utils | |
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 'cmd/podman/utils')
-rw-r--r-- | cmd/podman/utils/signals_linux.go | 15 | ||||
-rw-r--r-- | cmd/podman/utils/signals_windows.go | 15 |
2 files changed, 0 insertions, 30 deletions
diff --git a/cmd/podman/utils/signals_linux.go b/cmd/podman/utils/signals_linux.go deleted file mode 100644 index dd0507c0e..000000000 --- a/cmd/podman/utils/signals_linux.go +++ /dev/null @@ -1,15 +0,0 @@ -//go:build !windows -// +build !windows - -package utils - -import ( - "os" - - "golang.org/x/sys/unix" -) - -// Platform specific signal synonyms -var ( - SIGHUP os.Signal = unix.SIGHUP -) diff --git a/cmd/podman/utils/signals_windows.go b/cmd/podman/utils/signals_windows.go deleted file mode 100644 index e6fcc1b32..000000000 --- a/cmd/podman/utils/signals_windows.go +++ /dev/null @@ -1,15 +0,0 @@ -//go:build windows -// +build windows - -package utils - -import ( - "os" - - "golang.org/x/sys/windows" -) - -// Platform specific signal synonyms -var ( - SIGHUP os.Signal = windows.SIGHUP -) |