diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-08-30 18:30:47 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-08-30 18:30:47 +0200 |
commit | 3c4defb289a37002a924f12632426c5aab6a4f81 (patch) | |
tree | 03efae09ff08481c6c907cbe3847745741924a0e | |
parent | 662dd0f910150228ba93096d77637f697c2c3ed7 (diff) |
Ignored Window Changed signal for now.
-rw-r--r-- | main.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -345,7 +345,7 @@ endloop: // Handle client tty / pts if clientPty != "" { - log.Infoln("Client tty detected: %v\n", clientPty) + log.Infoln("Client tty detected: %v", clientPty) cpFd, err := os.OpenFile(clientPty, os.O_RDWR, 0) if err != nil { @@ -446,8 +446,15 @@ endloop: go func() { for { sig := <-sigs + + // FIXME: skip Window Changed signal for now + if sig == syscall.SIGWINCH { + log.Debugf("SKIP signal Window Changed") + return + } + if err := gdb.SendSignal(sig); err != nil { - log.Errorf("Error while sending signal: %s", err.Error()) + log.Errorf("Error while sending signal %v : %s", sig, err.Error()) } } }() |