Module: xenomai-gch
Branch: for-forge
Commit: 2fe3c4ffca136f304fabf8c16b70d979c1d27875
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=2fe3c4ffca136f304fabf8c16b70d979c1d27875

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon Jun  2 21:44:03 2014 +0200

cobalt: wait upon program termination to allow flushing stdio

---

 lib/cobalt/init.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/cobalt/init.c b/lib/cobalt/init.c
index 66421dd..b48f19a 100644
--- a/lib/cobalt/init.c
+++ b/lib/cobalt/init.c
@@ -265,3 +265,8 @@ static __libcobalt_ctor void __init_cobalt(void)
                exit(EXIT_FAILURE);
        }
 }
+
+static void __attribute__((destructor)) __fini_cobalt(void)
+{
+       cobalt_print_exit();
+}


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to