fix remote

This commit is contained in:
chzyer 2016-03-13 23:15:38 +08:00
parent 402307d9c0
commit 4e554e2dd0
2 changed files with 5 additions and 0 deletions

View File

@ -212,6 +212,10 @@ func (i *Instance) Close() error {
return nil
}
func (i *Instance) Write(b []byte) (int, error) {
return i.Stdout().Write(b)
}
func (i *Instance) SetConfig(cfg *Config) *Config {
if i.Config == cfg {
return cfg

View File

@ -354,6 +354,7 @@ func (r *RemoteCli) Serve() error {
}
}
}()
defer r.raw.Exit()
r.readLoop()
return nil
}