Code Review
/
src
/
xds
/
xds-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
662dd0f
)
Ignored Window Changed signal for now.
author
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Wed, 30 Aug 2017 16:30:47 +0000
(18:30 +0200)
committer
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Wed, 30 Aug 2017 16:30:47 +0000
(18:30 +0200)
main.go
patch
|
blob
|
history
diff --git
a/main.go
b/main.go
index
4302e9c
..
dc1d25b
100644
(file)
--- a/
main.go
+++ b/
main.go
@@
-345,7
+345,7
@@
endloop:
// Handle client tty / pts
if clientPty != "" {
// 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 {
cpFd, err := os.OpenFile(clientPty, os.O_RDWR, 0)
if err != nil {
@@
-446,8
+446,15
@@
endloop:
go func() {
for {
sig := <-sigs
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 {
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())
}
}
}()
}
}
}()