diff --git a/cmd/cp-main.go b/cmd/cp-main.go index 8077919b..cad2c953 100644 --- a/cmd/cp-main.go +++ b/cmd/cp-main.go @@ -405,7 +405,7 @@ loop: for { select { case <-trapCh: - quitCh <- struct{}{} + close(quitCh) cancelCopy() // Receive interrupt notification. if !globalQuiet && !globalJSON {