static void sigabrt_handler (int num) { (void)signal (SIGABRT, SIG_DFL); logsys_atexit(); logsys_log_rec_store (LOCALSTATEDIR "/lib/corosync/fdata"); raise (SIGABRT); }
void _corosync_exit_error ( enum e_ais_done err, const char *file, unsigned int line) { log_printf (LOGSYS_LEVEL_ERROR, "Corosync Cluster Engine exiting " "with status %d at %s:%u.\n", err, file, line); logsys_atexit (); exit (err); }
int main(int argc, char **argv) { int i; for (i = 0; i < 10000; i++) { log_printf (LOGSYS_LEVEL_NOTICE, "This is a test of %s(%d)\n", "stringparse", i); log_rec (LOGSYS_ENCODE_RECID(LOGSYS_LEVEL_NOTICE, logsys_subsys_id, LOGREC_ID_CHECKPOINT_CREATE), "record1", 8, "record22", 9, "record333", 10, "record444", 11, LOGSYS_REC_END); } logsys_atexit (); logsys_log_rec_store ("fdata"); return 0; }