Evac (evac v0.1.1)
The primary module for Evac, use the "setup" function to start intercepting SIGINT.
Link to this section Summary
Functions
Loads the NIF module for Evac, you shouldn't need to call this manually as it's called using @on_load
in the module itself.
Call this function with a pid()
you want the message 'SIGINT'
sent to when the VM receives it.
Link to this section Functions
init()
Specs
init() :: :ok
Loads the NIF module for Evac, you shouldn't need to call this manually as it's called using @on_load
in the module itself.
setup(pid)
Specs
setup(pid()) :: 0 | 1
Call this function with a pid()
you want the message 'SIGINT'
sent to when the VM receives it.
Please note, you can only have one pid()
registered to recieve the signal message at a time, calling this twice first with 'A' and then 'B' will result in only pid B recieveing the message!
The message value sent to the pid()
will be: 'SIGINT'