ceph: do not busy-loop on ceph -w

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
Sage Weil 2013-06-21 15:50:59 -07:00
parent 27912e5858
commit 34ef2f2484

View File

@ -42,6 +42,7 @@ import stat
import string
import struct
import subprocess
import time
import types
import uuid
@ -1511,6 +1512,7 @@ def main():
# loop forever letting watch_cb print lines
try:
while True:
time.sleep(5)
pass
except KeyboardInterrupt:
# or until ^C, at least