mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 10:18:01 +02:00
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:
parent
a684b5a3d5
commit
18684d442e
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue