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
dev
Kristian Høgsberg 11 years ago
parent a684b5a3d5
commit 18684d442e
  1. 4
      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);

Loading…
Cancel
Save