diff options
author | antirez <antirez@gmail.com> | 2014-10-08 10:17:01 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-10-08 10:17:01 +0200 |
commit | 908be1dbebf3e9a5a6fdb80d391e58481ddd5005 (patch) | |
tree | f4435f47b3442785a03264a03f7de1de9d395684 | |
parent | 5b47783d77d733f0019171d6db5d7841d43f1fef (diff) | |
download | redis-908be1dbebf3e9a5a6fdb80d391e58481ddd5005.tar.gz |
Cluster test: helpers/onlydots.tcl: detect EOF and exit.
-rw-r--r-- | tests/cluster/tests/helpers/onlydots.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cluster/tests/helpers/onlydots.tcl b/tests/cluster/tests/helpers/onlydots.tcl index 49040854a..4a6d1aee0 100644 --- a/tests/cluster/tests/helpers/onlydots.tcl +++ b/tests/cluster/tests/helpers/onlydots.tcl @@ -7,7 +7,9 @@ fconfigure stdin -buffering none while 1 { set c [read stdin 1] - if {$c eq {.}} { + if {$c eq {}} { + exit 0; # EOF + } elseif {$c eq {.}} { puts -nonewline . flush stdout } |