diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-05-24 14:24:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 14:24:46 -0400 |
commit | 0f5c06dac58645943469c63999931c165dba9031 (patch) | |
tree | 4747c6c6662921171c3bd8a2eef818ee8e0c4cab /pkg/signal/signal_linux.go | |
parent | eea7491d6b02893766b806775bf00c992a824fd2 (diff) | |
parent | 70f147d0190e566d68412430c47df9bc00ddd418 (diff) | |
download | podman-0f5c06dac58645943469c63999931c165dba9031.tar.gz podman-0f5c06dac58645943469c63999931c165dba9031.tar.bz2 podman-0f5c06dac58645943469c63999931c165dba9031.zip |
Merge pull request #14330 from Luap99/completion3
cmd/podman/common/completion.go: fix FIXMEs
Diffstat (limited to 'pkg/signal/signal_linux.go')
-rw-r--r-- | pkg/signal/signal_linux.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/signal/signal_linux.go b/pkg/signal/signal_linux.go index 21e09c9fe..a114ea019 100644 --- a/pkg/signal/signal_linux.go +++ b/pkg/signal/signal_linux.go @@ -23,8 +23,8 @@ const ( SIGWINCH = syscall.SIGWINCH // For cross-compilation with Windows ) -// signalMap is a map of Linux signals. -var signalMap = map[string]syscall.Signal{ +// SignalMap is a map of Linux signals. +var SignalMap = map[string]syscall.Signal{ "ABRT": unix.SIGABRT, "ALRM": unix.SIGALRM, "BUS": unix.SIGBUS, @@ -94,8 +94,8 @@ var signalMap = map[string]syscall.Signal{ // CatchAll catches all signals and relays them to the specified channel. func CatchAll(sigc chan os.Signal) { - handledSigs := make([]os.Signal, 0, len(signalMap)) - for _, s := range signalMap { + handledSigs := make([]os.Signal, 0, len(SignalMap)) + for _, s := range SignalMap { handledSigs = append(handledSigs, s) } signal.Notify(sigc, handledSigs...) |