From 908be1dbebf3e9a5a6fdb80d391e58481ddd5005 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 8 Oct 2014 10:17:01 +0200 Subject: [PATCH] Cluster test: helpers/onlydots.tcl: detect EOF and exit. --- tests/cluster/tests/helpers/onlydots.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }