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:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user