mirror of
https://github.com/MariaDB/server.git
synced 2026-04-21 15:55:53 +02:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue