Sets handler to be called whenever signal is caught by the application.
The user_data parameter will be passed as an argument to handler.
| handler |
A callback function. |
| signal |
A POSIX signal id number. |
| user_data |
Arbitrary data that will be passed to |
|
true on success, false otherwise, in which case throws will be set. |