Install SIGTERM and SIGINT handler which calls libcomcom_terminate().
@return 0 on success and -1 on error (also sets errno).
The installed signal handler also calls old signal handler automatically.
WARNING: If before calling these handlers were set by signal()
(not by sigaction()), then this function may not work (leads to undefined
behavior) on some non-Unix systems.
Install SIGTERM and SIGINT handler which calls libcomcom_terminate(). @return 0 on success and -1 on error (also sets errno).
The installed signal handler also calls old signal handler automatically.
WARNING: If before calling these handlers were set by signal() (not by sigaction()), then this function may not work (leads to undefined behavior) on some non-Unix systems.