workaround test failures in buildbot:
in some VMs readline thinks that the window size is zero. ignore it.
This commit is contained in:
parent
90e2240869
commit
8ece9de833
@ -1408,7 +1408,8 @@ sig_handler window_resize(int sig)
|
|||||||
struct winsize window_size;
|
struct winsize window_size;
|
||||||
|
|
||||||
if (ioctl(fileno(stdin), TIOCGWINSZ, &window_size) == 0)
|
if (ioctl(fileno(stdin), TIOCGWINSZ, &window_size) == 0)
|
||||||
terminal_width= window_size.ws_col;
|
if (window_size.ws_col > 0)
|
||||||
|
terminal_width= window_size.ws_col;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user