mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-12 17:27:50 +08:00
eval: Log instead of write signals.
This commit is contained in:
parent
53745d4b9f
commit
158b4b82a5
|
@ -197,7 +197,7 @@ func (ev *Evaler) EvalInteractive(text string, n *parse.Chunk) error {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case sig := <-sigch:
|
case sig := <-sigch:
|
||||||
fmt.Println(sig)
|
Logger.Println("from stub:", sig)
|
||||||
if sig == syscall.SIGINT {
|
if sig == syscall.SIGINT {
|
||||||
close(intCh)
|
close(intCh)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user