[issue4944] os.fsync() doesn't work as expect in Windows
Emil Styrke
report at bugs.python.org
Fri Mar 27 07:01:42 CET 2015
Emil Styrke added the comment:
eryksun, thank you for the explanation, the penny finally dropped for me. It's the *other* child processes that keep the file open, not the parent. Actually this bug started hitting me after I *stopped* doing exactly what you suggest (fdopen on the temp file), and instead started using file names generated by my program (opened with regular "open") and now I see why that is. If I use os.fdopen with the O_NOINHERIT flag, it works as expected.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4944>
_______________________________________
More information about the Python-bugs-list
mailing list