summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-05-30 15:25:57 +0200
committerMatthew Heon <mheon@redhat.com>2022-06-14 16:12:10 -0400
commite23dd66fa9cedc8f4cc35aeedfa74194b19e9c5b (patch)
treeb1d7778d450a276ac73dc2e8229e8767fcaa29a0 /cmd/podman
parentda4027c6550898045d93ac61d1b8b3e990bf5c73 (diff)
downloadpodman-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 'cmd/podman')
-rw-r--r--cmd/podman/utils/signals_linux.go15
-rw-r--r--cmd/podman/utils/signals_windows.go15
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
-)