eval: Log instead of write signals.

This commit is contained in:
Qi Xiao 2016-02-22 18:30:21 +01:00
parent 53745d4b9f
commit 158b4b82a5

View File

@ -197,7 +197,7 @@ func (ev *Evaler) EvalInteractive(text string, n *parse.Chunk) error {
for {
select {
case sig := <-sigch:
fmt.Println(sig)
Logger.Println("from stub:", sig)
if sig == syscall.SIGINT {
close(intCh)
return