Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cmd/samterm/sys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"log"
"os"
"strconv"
"syscall"

"9fans.net/go/draw"
"9fans.net/go/plan9"
Expand Down Expand Up @@ -77,10 +78,10 @@ func removeextern() {
os.Remove(exname)
}

func extproc(c chan string, fd *os.File) {
func extproc(c chan string, fd int) {
buf := make([]byte, READBUFSIZE)
for {
n, err := fd.Read(buf)
n, err := syscall.Read(fd,buf)
if err != nil {
fmt.Fprintf(os.Stderr, "samterm: extern read error: %v\n", err)
return /* not a fatal error */
Expand Down
2 changes: 1 addition & 1 deletion cmd/samterm/unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build unix
//go:build unix

package main

Expand Down