libcomcom_init2

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.

extern extern (C)
int
libcomcom_init2
(
sigaction_t* old
)

Meta