mlog: Catch OSError when closing pager

For some reasons, with msys2 it sometimes raises OSError instead of
BrokenPipeError.

Fixes: #12541
pull/11191/merge
Xavier Claessens 12 months ago committed by Eli Schwartz
parent 85e4ee5b54
commit 319b41b4c9
  1. 2
      mesonbuild/mlog.py

@ -190,7 +190,7 @@ class _Logger:
try:
self.log_pager.stdin.flush()
self.log_pager.stdin.close()
except BrokenPipeError:
except OSError:
pass
self.log_pager.wait()
self.log_pager = None

Loading…
Cancel
Save