Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

[BUG] Fstream calls stat on written file *after* emitting close event, crashing when a consumer deletes file in on(close) #70

Open
tkafka opened this issue Mar 19, 2021 · 0 comments

Comments

@tkafka
Copy link

tkafka commented Mar 19, 2021

What / Why

See tomayac/local-reverse-geocoder#39.

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant