static void sigabrt_handler (int num) { (void)signal (SIGABRT, SIG_DFL); logsys_atexit(); logsys_log_rec_store (LOCALSTATEDIR "/lib/corosync/fdata"); raise (SIGABRT); }
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; }