Module: xenomai-3
Branch: next
Commit: 1892a4a8e49c1e8da846535d84670c72020f3bf9
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1892a4a8e49c1e8da846535d84670c72020f3bf9

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Wed Jan  7 18:00:38 2015 +0100

sysregd: Remove session rootdir on cleanup

When the session-managing sysreg daemon terminates, try to clean up the
session directory as well.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 lib/copperplate/regd/regd.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 3f7f378..8a66290 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -283,6 +283,7 @@ static void delete_system_fs(void)
 {
        umount2(sysroot, MNT_DETACH);
        rmdir(sysroot);
+       rmdir(rootdir);
 }
 
 static void handle_requests(void)


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

Reply via email to