Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file descriptor leak #23

Closed
zieckey opened this issue Apr 7, 2017 · 0 comments
Closed

file descriptor leak #23

zieckey opened this issue Apr 7, 2017 · 0 comments
Labels

Comments

@zieckey
Copy link
Collaborator

zieckey commented Apr 7, 2017

EventLoop::watcher_ is a type of PipeEventWatcher, it will create two file descriptors on initialization. We think these two file descriptors whill be closed when PipeEventWatcher destructing :

EventWatcher::~EventWatcher() {
    FreeEvent();
    Close();
}

But when the object is destructing we have no change to call PipeEventWatcher::DoClose() because the drived class PipeEventWatcher must be desctructed before EventWatcher.

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

No branches or pull requests

1 participant