6 Commits

Author SHA1 Message Date
Vitaly Potyarkin
291695431f Do not set file descriptor into blocking mode
(*os.File).Fd() implicitly sets file descriptor into blocking mode [1], [2]
We avoid that by calling (*os.File).SyscallConn instead.
This method was added in go1.12 (released on 2019-02-25)

[1]: https://pkg.go.dev/os#File.Fd
[2]: https://cs.opensource.google/go/go/+/refs/tags/go1.20.3:src/os/file_unix.go;l=80-87
2023-04-28 09:24:09 +00:00
Fraser Waters
7de28cee0d Add GHA workflow to run test_crosscompile and go test (#141)
* Add GHA workflow to run test_crosscompile and go test
* crosscompile job doesn't need setup-go
* Test more go versions
* Test 1.6
* Remove 1.13 and add comment of testing strategy
2022-03-27 08:14:20 -04:00
Guillaume J. Charmes
f73a158a9a Simplify solaris implementation. (#120)
Remove golang.org/x/sys/unix dependency for solaris
Add new go build tag directives
2021-05-29 18:39:47 -04:00
Guillaume J. Charmes
282ce0e532 Improve error management for openpty (#57)
Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net>
2018-01-13 13:08:13 -05:00
Caio Marcelo de Oliveira Filho
ed84cf86c9 Reformat pty_dragonfly.go file using gofmt 2016-07-14 10:03:11 -03:00
Michael Neumann
c0bea8ed3c Support DragonFly BSD
Tested with "go test" of github.com/creack/termios.
2016-05-20 15:25:14 +02:00