Skip to content

Commit b744afa

Browse files
authored
Disable non-blocking I/O for stdout, stderr (#1769)
* Disable non-blocking I/O for stdout, stderr * Reduce to minimum * Disable non-blocking for stderr too
1 parent 9e2d4be commit b744afa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ os:
1414
- osx
1515
- linux
1616

17+
before_install:
18+
# Disable non-blocking I/O for stdout, stderr https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
19+
- 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);'
20+
- python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stderr, fcntl.F_GETFL); fcntl.fcntl(sys.stderr, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
21+
1722
branches:
1823
only: [master]
1924
cache:

0 commit comments

Comments
 (0)