mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Merge branch 'ks1322-master'
This commit is contained in:
commit
a8e44f34d0
@ -957,6 +957,7 @@ private:
|
||||
String pager = config().getString("pager", "");
|
||||
if (!pager.empty())
|
||||
{
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
pager_cmd = ShellCommand::execute(pager, true);
|
||||
out_buf = &pager_cmd->in;
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
Ok
|
5
dbms/tests/queries/0_stateless/00532_pager_sigpipe.sh
Executable file
5
dbms/tests/queries/0_stateless/00532_pager_sigpipe.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
|
||||
expect $CURDIR/00532_pager_sigpipe.tcl && echo 'Ok' || echo 'Fail'
|
15
dbms/tests/queries/0_stateless/00532_pager_sigpipe.tcl
Normal file
15
dbms/tests/queries/0_stateless/00532_pager_sigpipe.tcl
Normal file
@ -0,0 +1,15 @@
|
||||
set timeout -1
|
||||
|
||||
log_user 0
|
||||
|
||||
spawn clickhouse-client --pager=head
|
||||
|
||||
expect ":) "
|
||||
|
||||
send "select name from system.settings union all select name from system.settings union all select name from system.settings union all select name from system.settings union all select name from system.settings union all select name from system.settings union all select name from system.settings union all select name from system.settings\r"
|
||||
|
||||
expect ":) "
|
||||
|
||||
send "quit\r"
|
||||
|
||||
expect eof
|
Loading…
Reference in New Issue
Block a user