mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
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:
parent
27912e5858
commit
34ef2f2484
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user