In cleanup it does some rpio access to clean up a device.
The problem is that rpio also hooks process.on('exit') and closes down all the setup pins. When I try to access them I get a segmentation fault as they have already been closed down.
Is there a way to prevent the hooking of the process exit signal and instead put the burden on me to call rpio_close?
I have a library I am working on that hooks:
In cleanup it does some rpio access to clean up a device.
The problem is that rpio also hooks process.on('exit') and closes down all the setup pins. When I try to access them I get a segmentation fault as they have already been closed down.
Is there a way to prevent the hooking of the process exit signal and instead put the burden on me to call rpio_close?
I didn't see one in the code.
Thanks!
119