React quickly to quit requests 73/66673/2
authorStephen Kitt <skitt@redhat.com>
Wed, 20 Dec 2017 17:54:00 +0000 (18:54 +0100)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 20 Dec 2017 18:45:34 +0000 (10:45 -0800)
commit3a805b211800941b4250effa90fa82cc3ad9142b
treeb69a6dc3f65c938dcce905fa56a4b3140c47cb7c
parent64f2a2226c27ba9b10650d08aa02913276509984
React quickly to quit requests

This patch checks keypresses in both loops inside the main loop,
ensuring that the monitor quits soon after the user presses 'q'.

Change-Id: I5889d1958e6c3887cde715feac4bc3cb87b67f34
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
tools/clustering/cluster-monitor/monitor.py