weston-launch: Ignore sighup
When our session terminates all processes get a SIGHUP. We need to ignore
that in weston-launch and stay around to help weston shut down properly.
https://bugs.freedesktop.org/show_bug.cgi?id=63004
diff --git a/src/weston-launch.c b/src/weston-launch.c
index 4c07d8e..ac786af 100644
--- a/src/weston-launch.c
+++ b/src/weston-launch.c
@@ -220,6 +220,10 @@
ret = sigaction(SIGCHLD, &sa, NULL);
assert(ret == 0);
+ sa.sa_handler = SIG_IGN;
+ sa.sa_flags = 0;
+ sigaction(SIGHUP, &sa, NULL);
+
ret = sigemptyset(&mask);
assert(ret == 0);
sigaddset(&mask, SIGCHLD);