[PATCH 4/7] Clean up the poll loop resourses on exit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Angus Salkeld <asalkeld@xxxxxxxxxx>
---
 exec/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/exec/main.c b/exec/main.c
index 4f557ad..444e59c 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -799,6 +799,7 @@ static void corosync_totem_dynamic_init (void)
 		totem_dynamic_destroy_notify_fn,
 		NULL, NULL);
 }
+
 static void corosync_totem_stats_init (void)
 {
 	totempg_stats_t * stats;
@@ -1643,6 +1644,11 @@ int main (int argc, char **argv, char **envp)
 	totempg_finalize ();
 
 	/*
+	 * free the loop resources
+	 */
+	qb_loop_destroy (corosync_poll_handle);
+
+	/*
 	 * Remove pid lock file
 	 */
 	unlink (corosync_lock_file);
-- 
1.7.7

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux