diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-01-26 21:49:31 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-01-26 21:49:31 +0100 |
commit | 8ece9de8331798c3fefceebe72e43b1c40d06a99 (patch) | |
tree | 1871aaa12b1e12ab5d38d76d608b2b7ccd632511 /client/mysql.cc | |
parent | 90e2240869b9e0eba4fb8a87003e0d001872228e (diff) | |
download | mariadb-git-8ece9de8331798c3fefceebe72e43b1c40d06a99.tar.gz |
workaround test failures in buildbot:
in some VMs readline thinks that the window size is zero. ignore it.
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index c2bfdce2f74..5e4e80373ad 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -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 |