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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Sun Jan  4 14:20:16 2015 +0100

sysregd: Ignore SIGHUP while running as daemon

This signal is sent to the daemons when its original session is
terminated.

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

---

 lib/copperplate/regd/regd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 780a922..bc9335c 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -371,8 +371,9 @@ static void create_system_fs(const char *arg0, const char 
*rootdir)
        memset(&sa, 0, sizeof(sa));
        sa.sa_handler = cleanup_handler;
        sigaction(SIGTERM, &sa, NULL);
-       sigaction(SIGHUP, &sa, NULL);
        sigaction(SIGINT, &sa, NULL);
+       sa.sa_handler = SIG_IGN;
+       sigaction(SIGHUP, &sa, NULL);
 
        for (d = sysreg_dirs; d->path != NULL; d++)
                registry_add_dir(d->path);


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

Reply via email to