From: Sage Weil Date: Fri, 21 Jun 2013 22:50:59 +0000 (-0700) Subject: ceph: do not busy-loop on ceph -w X-Git-Tag: v0.65~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=34ef2f2484df57fb99b1273b60517713c09cab13;p=ceph.git ceph: do not busy-loop on ceph -w Signed-off-by: Sage Weil Reviewed-by: Dan Mick --- diff --git a/src/ceph.in b/src/ceph.in index e14d75ac79f..5138696dc8a 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -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