try to fix darwin pty

This commit is contained in:
Liam Galvin 2018-08-13 17:29:37 +01:00
parent c69664a0d4
commit 31fac53df2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func open() (*os.File, *os.File, error) {
} }
func getpt() (file *os.File, err error) { func getpt() (file *os.File, err error) {
f, err := os.OpenFile("/dev/ptmx", os.O_RDWR|syscall.O_CLOEXEC, 0) f, err := syscall.Open("/dev/ptmx", syscall.O_RDWR|syscall.O_CLOEXEC, 0)
if err != nil { if err != nil {
return nil, err return nil, err
} }