libcomcom_init_stratum

Initialize the library. Call it before libcomcom_run_command(). This function is like libcomcom_init2(), but the old SIGCHLD signal handler is obtained automatically (by sigaction() library function).

WARNING: If before calling this SIGCHLD handler was set by signal() (not by sigaction()), then this function may not work (leads to undefined behavior) on some non-Unix systems. @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_init_stratum
()

Meta