[Xenomai-git] Philippe Gerum : utils/autotune: protect against SIGHUP in background mode

2016-04-12 Thread git repository hosting
Module: xenomai-3
Branch: wip/dovetail
Commit: 20d6ae1796c510ab0494962f4c65b8a2c1df9015
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=20d6ae1796c510ab0494962f4c65b8a2c1df9015

Author: Philippe Gerum 
Date:   Sat Mar 19 08:44:34 2016 +0100

utils/autotune: protect against SIGHUP in background mode

---

 utils/autotune/autotune.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/autotune/autotune.c b/utils/autotune/autotune.c
index 5c3e0fe..f52733b 100644
--- a/utils/autotune/autotune.c
+++ b/utils/autotune/autotune.c
@@ -24,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -285,6 +286,7 @@ int main(int argc, char *const argv[])
error(1, errno, "cannot set CPU affinity");
 
if (background) {
+   signal(SIGHUP, SIG_IGN);
ret = daemon(0, 0);
if (ret)
error(1, errno, "cannot daemonize");


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : utils/autotune: protect against SIGHUP in background mode

2016-03-19 Thread git repository hosting
Module: xenomai-3
Branch: wip/prioceil
Commit: e95e7563c02aa86b438677f8a38427634c7d49c9
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=e95e7563c02aa86b438677f8a38427634c7d49c9

Author: Philippe Gerum 
Date:   Sat Mar 19 08:44:34 2016 +0100

utils/autotune: protect against SIGHUP in background mode

---

 utils/autotune/autotune.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/autotune/autotune.c b/utils/autotune/autotune.c
index 5c3e0fe..f52733b 100644
--- a/utils/autotune/autotune.c
+++ b/utils/autotune/autotune.c
@@ -24,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -285,6 +286,7 @@ int main(int argc, char *const argv[])
error(1, errno, "cannot set CPU affinity");
 
if (background) {
+   signal(SIGHUP, SIG_IGN);
ret = daemon(0, 0);
if (ret)
error(1, errno, "cannot daemonize");


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : utils/autotune: protect against SIGHUP in background mode

2016-03-19 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 20d6ae1796c510ab0494962f4c65b8a2c1df9015
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=20d6ae1796c510ab0494962f4c65b8a2c1df9015

Author: Philippe Gerum 
Date:   Sat Mar 19 08:44:34 2016 +0100

utils/autotune: protect against SIGHUP in background mode

---

 utils/autotune/autotune.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/autotune/autotune.c b/utils/autotune/autotune.c
index 5c3e0fe..f52733b 100644
--- a/utils/autotune/autotune.c
+++ b/utils/autotune/autotune.c
@@ -24,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -285,6 +286,7 @@ int main(int argc, char *const argv[])
error(1, errno, "cannot set CPU affinity");
 
if (background) {
+   signal(SIGHUP, SIG_IGN);
ret = daemon(0, 0);
if (ret)
error(1, errno, "cannot daemonize");


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : utils/autotune: protect against SIGHUP in background mode

2016-03-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: e95e7563c02aa86b438677f8a38427634c7d49c9
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=e95e7563c02aa86b438677f8a38427634c7d49c9

Author: Philippe Gerum 
Date:   Sat Mar 19 08:44:34 2016 +0100

utils/autotune: protect against SIGHUP in background mode

---

 utils/autotune/autotune.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/autotune/autotune.c b/utils/autotune/autotune.c
index 5c3e0fe..f52733b 100644
--- a/utils/autotune/autotune.c
+++ b/utils/autotune/autotune.c
@@ -24,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -285,6 +286,7 @@ int main(int argc, char *const argv[])
error(1, errno, "cannot set CPU affinity");
 
if (background) {
+   signal(SIGHUP, SIG_IGN);
ret = daemon(0, 0);
if (ret)
error(1, errno, "cannot daemonize");


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git