Initialize the library. Call it before libcomcom_run_command().
The old signal action is stored internally (and restored by
libcomcom_destroy() or libcomcom_terminate()).
The old signal handler (the one obtained from old variable) is also
called from our SIGCHLD handler.
@return 0 on success and -1 on error (also sets errno).
You should usually also initialize SIGTERM/SIGINT signal handlers.
Initialize the library. Call it before libcomcom_run_command(). The old signal action is stored internally (and restored by libcomcom_destroy() or libcomcom_terminate()). The old signal handler (the one obtained from old variable) is also called from our SIGCHLD handler. @return 0 on success and -1 on error (also sets errno).
You should usually also initialize SIGTERM/SIGINT signal handlers.