From 68c4c1e8dccfc948a33218cfa7ca93e151bb7ee3 Mon Sep 17 00:00:00 2001
From: Shidong Wang <wsdjeg@outlook.com>
Date: Tue, 20 Oct 2020 15:56:42 +0800
Subject: [PATCH] Disable O_NONBLOCK

---
 .ci/script.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.ci/script.sh b/.ci/script.sh
index 0509b3bbb..3b36ef20b 100755
--- a/.ci/script.sh
+++ b/.ci/script.sh
@@ -78,9 +78,10 @@ elif [ "$LINT" = "vader" ]; then
     echo "=================  ${VIM_BIN} version ======================"
     $VIM_BIN --version
     pip install covimerage
+    pip install codecov
+    python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
     make test_coverage
     covimerage -vv xml --omit 'build/*'
-    pip install codecov
     codecov -X search gcov pycov -f coverage.xml
 elif [ "$LINT" = "jekyll" ]; then
     .ci/build-production