Fstream calls stat on written files (for reasons I don't understand) after emitting close event, and if a consumer uses and deletes the written file in close handler, stat causes crash.
I don't think fstream should touch the written file in any way after emitting close event.
What / Why
See https://github.com/tomayac/local-reverse-geocoder/issues/39.
Fstream calls
stat
on written files (for reasons I don't understand) after emittingclose
event, and if a consumer uses and deletes the written file inclose
handler,stat
causes crash.I don't think fstream should touch the written file in any way after emitting
close
event.