mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Hack to enable server to complete sending data to client (eg. xs -x "ls /foo" losing end of output)
This commit is contained in:
parent
bd0b48d98f
commit
d99793554d
1 changed files with 2 additions and 0 deletions
|
|
@ -327,6 +327,8 @@ func runShellAs(who, hname, ttype, cmd string, interactive bool, //nolint:funlen
|
|||
// #gv:s/label=\"runShellAs\$1\"/label=\"deferPtmxClose\"/
|
||||
defer func() {
|
||||
//logger.LogDebug(fmt.Sprintf("[Exited process was %d]", c.Process.Pid))
|
||||
//FIXME: Ensure socket has sent all data to client prior to closing
|
||||
time.Sleep(100 * time.Millisecond) //HACK: syscall.Shutdown() ? -rlm
|
||||
_ = ptmx.Close()
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue