]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: do not busy-loop on ceph -w
authorSage Weil <sage@inktank.com>
Fri, 21 Jun 2013 22:50:59 +0000 (15:50 -0700)
committerSage Weil <sage@inktank.com>
Fri, 21 Jun 2013 22:50:59 +0000 (15:50 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/ceph.in

index e14d75ac79f25c479c535cb3242597f893ff87e3..5138696dc8ab9f110634bfcc7e585d63a2eb1651 100755 (executable)
@@ -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