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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user