c4b9a0df28e944c5972bcd56aee653bef0e1e683
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%