Hi,

Andrew requested an API interface to be able to flush logs on demand.

Add logsys_flush call to signal the logging thread to do its job.

Fabio
--- include/corosync/engine/logsys.h	(revision 2100)
+++ include/corosync/engine/logsys.h	(working copy)
@@ -150,6 +150,8 @@
 /*
  * External API - misc
  */
+extern void logsys_flush (void);
+
 extern int logsys_log_rec_store (const char *filename);
 
 /*
--- exec/logsys.c	(revision 2101)
+++ exec/logsys.c	(working copy)
@@ -1466,3 +1466,8 @@
 		pthread_join (logsys_thread_id, NULL);
 	}
 }
+
+void logsys_flush (void)
+{
+	wthread_signal ();
+}
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to