1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

workaround test failures in buildbot:

in some VMs readline thinks that the window size is zero. ignore it.
This commit is contained in:
Sergei Golubchik
2014-01-26 21:49:31 +01:00
parent 90e2240869
commit 8ece9de833

View File

@ -1408,7 +1408,8 @@ sig_handler window_resize(int sig)
struct winsize window_size;
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