libcomcom_set_default_terminate2

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.

extern extern (C)
int
libcomcom_set_default_terminate2
()

Meta