From 18684d442ef87ab857dcda0b9785c328b3da2298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 22 Jul 2013 11:59:18 -0700 Subject: [PATCH] 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 --- src/weston-launch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/weston-launch.c b/src/weston-launch.c index 4c07d8e4c..ac786afa5 100644 --- a/src/weston-launch.c +++ b/src/weston-launch.c @@ -220,6 +220,10 @@ setup_signals(struct weston_launch *wl) 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);