Fix 'inappropriate ioctl for device'

This commit is contained in:
byung2 2018-04-10 14:51:39 +09:00
parent a7be1467bf
commit 6e830102b9
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }