libctrl: Add trap helper function
2 files changed