Module: xenomai-forge
Branch: next
Commit: 6951f64c0a438c708711e24434143969c6c62567
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=6951f64c0a438c708711e24434143969c6c62567

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Apr 23 15:19:44 2014 +0200

copperplate: set SA_RESTART for internal signals

---

 lib/copperplate/registry.c  |    1 +
 lib/copperplate/threadobj.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c
index 1606cd7..f6bb148 100644
--- a/lib/copperplate/registry.c
+++ b/lib/copperplate/registry.c
@@ -641,6 +641,7 @@ static int spawn_daemon(const char *sessdir)
                regd_pid = pid;
                barrier();
                sa.sa_handler = sigchld_handler;
+               sa.sa_flags = SA_RESTART;
                sigaction(SIGCHLD, &sa, NULL);
                ret = 0;
                break;
diff --git a/lib/copperplate/threadobj.c b/lib/copperplate/threadobj.c
index 9901a54..5429876 100644
--- a/lib/copperplate/threadobj.c
+++ b/lib/copperplate/threadobj.c
@@ -441,6 +441,7 @@ static inline void pkg_init_corespec(void)
 
        memset(&sa, 0, sizeof(sa));
        sa.sa_handler = unblock_sighandler;
+       sa.sa_flags = SA_RESTART;
        sigaction(SIGRELS, &sa, NULL);
        sigaction(SIGWAKEUP, &sa, NULL);
        sa.sa_handler = roundrobin_handler;


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

Reply via email to