aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_plan9.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/exec/exec_plan9.go')
-rw-r--r--src/os/exec/exec_plan9.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/exec/exec_plan9.go b/src/os/exec/exec_plan9.go
index d90bd04399..21ac7b765f 100644
--- a/src/os/exec/exec_plan9.go
+++ b/src/os/exec/exec_plan9.go
@@ -4,14 +4,14 @@
package exec
-import "os"
+import "io/fs"
func init() {
skipStdinCopyError = func(err error) bool {
// Ignore hungup errors copying to stdin if the program
// completed successfully otherwise.
// See Issue 35753.
- pe, ok := err.(*os.PathError)
+ pe, ok := err.(*fs.PathError)
return ok &&
pe.Op == "write" && pe.Path == "|1" &&
pe.Err.Error() == "i/o on hungup channel"