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

client thread cancelation #129

Open
fdechelle opened this issue Jan 30, 2017 · 0 comments
Open

client thread cancelation #129

fdechelle opened this issue Jan 30, 2017 · 0 comments
Assignees
Milestone

Comments

@fdechelle
Copy link
Member

fdechelle commented Jan 30, 2017

Unregistering a client must terminate its associated thread that is waiting for notifications coming from the daemon.

Unfortunately there is no cancel function in GThread API.

Suggested solution (and good one) is to add a pipe and do a select() or a poll() in the thread. If pipe becomes ready, then thread exists.

@fdechelle fdechelle self-assigned this Jan 30, 2017
@fdechelle fdechelle added this to the Linux release milestone Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant