Adit control api backports
Hello,
please consider accepting following linux specific back-ports developed by ADIT audio team. The patches allow proper responsiveness to some failure states on linux and fix the hang ups that would occur otherwise.
Best Regards, Adam Miartus
These look good to me. Thank you! The added signal setup should really be moved to jackctl_setup_signals() in a followup commit (these ones are cherry picks and it is good to keep them like this instead of rewriting git history). For jackdbus at least, it would be good to have epoll() call on the side of the control API user/caller (jackd, jackdbus). Extending the Control API with notion of either libevent (should work on Windows too), or similar abstraction, will achieve this goal.
I added jackctl_finish_signals() to the API: https://github.com/LADI/jack2/commit/ae7b5d0dda4205adeccab85e6b1ca99aab2300fc
It is a function to call for cleaning, after waiting on a signal set, to undo the jackctl_setup_signals() and restore to previous state.
thank you for reviewing and refactoring. looks better to me as it is now after your changes.
thanks @imaami I can have a look at this over the holidays