mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Removed redundant assigns of stdin/out/err to conn prior to ptmx setup
This commit is contained in:
parent
399babd62a
commit
bebfd1cb1f
3 changed files with 3 additions and 4 deletions
|
@ -307,9 +307,6 @@ func runShellAs(who, hname, ttype, cmd string, interactive bool, conn *xsnet.Con
|
|||
} else {
|
||||
c.SysProcAttr.Credential = &syscall.Credential{Uid: uid, Gid: gid}
|
||||
}
|
||||
c.Stdin = conn
|
||||
c.Stdout = conn
|
||||
c.Stderr = conn
|
||||
|
||||
// Start the command with a pty.
|
||||
ptmx, err := pty.Start(c) // returns immediately with ptmx file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue