remove Sleep

This commit is contained in:
Yasuhiro Matsumoto 2017-09-07 09:00:06 +09:00
parent 768f2d8293
commit 23e0c232c7

View File

@ -7,7 +7,6 @@ import (
"os"
"os/signal"
"syscall"
"time"
)
func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {
@ -33,9 +32,6 @@ func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop ch
case syscall.SIGQUIT: // kill -SIGQUIT XXXX
log.Println("[SIGNAL] Catch SIGQUIT")
exitCh <- 0
default:
time.Sleep(10 * time.Millisecond)
}
}
}