[issue4944] os.fsync() doesn't work as expect in Windows

Gabriel Genellina report at bugs.python.org
Wed Jan 21 08:36:02 CET 2009


Gabriel Genellina <gagsl-py2 at yahoo.com.ar> added the comment:

Thanks for adapting the smaller example. I think I figured out what's 
the problem.

The error reported by checkfile.c is 0x20 = ERROR_SHARING_VIOLATION
"The process cannot access the file because it is being used by 
another process."

I modified the subprocess call, adding the parameter close_fds=True -- 
and now I see no errors. 
Please do a similar change in your application and see if it works.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4944>
_______________________________________


More information about the Python-bugs-list mailing list