armadito-av
armadito-av copied to clipboard
client thread cancelation
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.