Apparently, there is no need to close handle that is returned by _get_osfhandle - it should be closed anyway than original handle is closed.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Aidan, could you let me know whether this patch prevents lldb from crashing on Windows?
Comment Actions
Hi Oleksiy,
I tested your patch this morning and it does indeed fix the crash we have been seeing.
I still feel it would be nice to tie the LockFileWindows to the lifetime of the File object who's handle its using, but perhaps we can address that if the issue arises.
Thanks,
Aidan
Comment Actions
Hi Aidan,
totally makes sense - with this CL I just wanted to fix an ongoing issue that you're facing.
Thank you.
Comment Actions
AFFECTED FILES
/lldb/trunk/source/Host/windows/LockFileWindows.cpp
USERS
ovyalov (Author)