Merge pull request #37143 from dvanders/dvanders_flush

ceph.in: ignore failures to flush stdout

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-09-17 18:39:09 +08:00 committed by GitHub
commit d814c5533b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1256,8 +1256,12 @@ def main():
except IOError as e:
if e.errno != errno.EPIPE:
raise e
try:
sys.stdout.flush()
except IOError as e:
if e.errno != errno.EPIPE:
raise e
sys.stdout.flush()
# Block until command completion (currently scrub and deep_scrub only)
if block: