koolkhel/vitastor:epoll-handler-copy
master
Removing its own FD handler destroys the stdin handler's closure while it runs, so the `finished = true` after it read `this` from freed memory (heap-use-after-free under ASAN when stdin is a socket whose peer closes). Set the flag first.