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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jul 23 09:58:12 2015 +0200

copperplate/regd: fix duplicate removal of /system tree

delete_system_fs() is already called via an atexit() handler.

---

 lib/copperplate/regd/regd.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 8176c9a..bcf5a9d 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -377,10 +377,8 @@ static void handle_requests(void)
                if (tmfd != -1 && FD_ISSET(tmfd, &set)) {
                        ret = __STD(read(tmfd, &exp, sizeof(exp)));
                        (void)ret;
-                       if (pvlist_empty(&client_list)) {
-                               delete_system_fs();
+                       if (pvlist_empty(&client_list))
                                exit(0);
-                       }
                }
                for (s = sockfd + 1; s < FD_SETSIZE; s++) {
                        if (!FD_ISSET(s, &set) || s == tmfd)
@@ -391,7 +389,6 @@ static void handle_requests(void)
                                __STD(close(s));
                                FD_CLR(s, &refset);
                                if (anon && pvlist_empty(&client_list)) {
-                                       delete_system_fs();
                                        if (daemonize) {
                                                note("unlinking session %s",
                                                     
__copperplate_setup_data.session_label);


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

Reply via email to