mirror of
https://github.com/creack/pty.git
synced 2026-04-01 11:07:11 +09:00
Add no NOCTTY, required for when there is no controlling terminal
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user