7ddb21276c97614be0d2d3394d15003d02dd74fe
It has been observed that using os.fdopen() below in multi-threaded scenarios is causing EBADF (thus OSError). There is probably a racen condition down in the stack or mkstemp() itself is not guaranteed against concurrent access. For now, just consume one more file descriptor and avoid the race completely.
Description
No description provided
Languages
Python
98.8%
Shell
0.7%
Makefile
0.4%