Fix 'inappropriate ioctl for device'
This commit is contained in:
parent
a7be1467bf
commit
6e830102b9
2
arch.go
2
arch.go
|
@ -20,7 +20,7 @@ func resetSignalSIGWINCH() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func syscallTIOCGWINSZ() ([]byte, error) {
|
func syscallTIOCGWINSZ() ([]byte, error) {
|
||||||
ws, err := unix.IoctlGetWinsize(0, 0)
|
ws, err := unix.IoctlGetWinsize(0, unix.TIOCGWINSZ)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("ioctl error: %v", err)
|
return nil, fmt.Errorf("ioctl error: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue