static void htspe_log(htsmoduleStruct * str, const char *msg) { const char *savename = str->filename; httrackp *opt = (httrackp *) str->opt; hts_log_print(opt, LOG_DEBUG, "(External module): parsing %s using module %s", savename, msg); }
static void sig_leave(int code) { if (global_opt != NULL && global_opt->state._hts_in_mirror) { signal(code, sig_term); // quitter si encore printf("\n** Finishing pending transfers.. press again ^C to quit.\n"); if (global_opt != NULL) { // ask for stop hts_log_print(global_opt, LOG_ERROR, "Exit requested by shell or user"); global_opt->state.stop = 1; } } else { sig_term(code); } }