Add no NOCTTY, required for when there is no controlling terminal

This commit is contained in:
Cameron Stewart
2013-09-27 01:57:47 +10:00
parent 27435c699b
commit 3b1f6487b7

View File

@@ -28,7 +28,7 @@ func open() (pty, tty *os.File, err error) {
return nil, nil, err
}
t, err := os.OpenFile(sname, os.O_RDWR, 0)
t, err := os.OpenFile(sname, os.O_RDWR|syscall.O_NOCTTY, 0)
if err != nil {
return nil, nil, err
}