Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80b443b

Browse files
committed
Add comment for attrs
1 parent 3187b70 commit 80b443b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pty/start_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func startPty(cmd *exec.Cmd) (PTY, error) {
4747
if err != nil {
4848
return nil, err
4949
}
50+
// Taken from: https://github.com/microsoft/hcsshim/blob/2314362e977aa03b3ed245a4beb12d00422af0e2/internal/winapi/process.go#L6
5051
err = attrs.Update(0x20016, unsafe.Pointer(winPty.console), unsafe.Sizeof(winPty.console))
5152
if err != nil {
5253
return nil, err

0 commit comments

Comments
 (0)