mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: Handle platform specific PTY polling for terminal copy (#279)
* fix: Handle platform specific PTY polling for terminal copy * fix: Code review fixes * fix: Code review fixes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//go:build windows
|
||||
|
||||
package pty
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
)
|
||||
|
||||
// copyPTYOutput on Windows uses a plain context-aware copy. The conpty backend
|
||||
// is not affected by the kqueue netpoller issue that requires a poll(2) loop on
|
||||
// unix hosts.
|
||||
func copyPTYOutput(ctx context.Context, dst io.Writer, src io.Reader) error {
|
||||
return copyWithContext(ctx, dst, src)
|
||||
}
|
||||
Reference in New Issue
Block a user