Add SIGUSR2 handler in bridge plugin to re-load state. #1658
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Carla's bridge plugin (via
carla-single
) is the best single plugin host I have found for Linux.The only feature I am missing is being able to re-load the plugin state at runtime. That would enable reverting to a state saved earlier by sending a SIGUSR1. In my case I want to use that in a scripting project where I manage some running plugins, but also for manual usage it would be useful.
This pull requests adds a SIGUSR2 handler, which will re-load the plugin state from the state file (just as it does on start-up).
I figured that although Carla apparently doesn't need this feature, the change is small and harmless and makes Carla just a tiny bit better. I hope you will consider pulling this in.
How I tested:
carla-single lv2 http://gareus.org/oss/lv2/b_synth