mirror of
https://github.com/fluencelabs/redis
synced 2025-06-11 08:11:20 +00:00
Cluster test: helpers/onlydots.tcl: detect EOF and exit.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user