Skip to content

Commit

Permalink
Remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Mundy committed Oct 23, 2021
1 parent 1c0474b commit b7dcbd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions execenv/user_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package execenv
Expand Down
4 changes: 2 additions & 2 deletions tasks/job/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (t *Task) forwardSignals(
) chan<- os.Signal {
chanSig := make(chan os.Signal, 128)

signal.Notify(chanSig, syscall.SIGINT, syscall.SIGTERM, SIGWINCH)
signal.Notify(chanSig, syscall.SIGINT, syscall.SIGTERM, syscall.SIGWINCH)

go func() {
for sig := range chanSig {
Expand All @@ -375,7 +375,7 @@ func (t *Task) forwardSignals(
}

switch sysSignal {
case SIGWINCH:
case syscall.SIGWINCH:
handleWinSizeChangeSignal(logger, client, containerID)
default:
handleShutdownSignals(logger, client, containerID, sysSignal)
Expand Down
4 changes: 1 addition & 3 deletions tasks/job/signal_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package job
Expand All @@ -7,9 +8,6 @@ import (
"syscall"
)

// SIGWINCH alias
const SIGWINCH = syscall.SIGWINCH

// Send a SIGWINCH signal to make sure terminals to have the correct
// window dimensions
func initWindow(chanSig chan<- os.Signal) {
Expand Down

0 comments on commit b7dcbd2

Please sign in to comment.