diff options
author | 2018-08-01 23:21:29 +1000 | |
---|---|---|
committer | 2018-08-02 21:31:34 +1000 | |
commit | 7d8413d9628ed493790454410a28b9f0c41444e6 (patch) | |
tree | 30f1998285da49fdf3bfe37b29c8c046b8095071 /swaybar | |
parent | Link xcb dependency to meson options "enable_xwayland" (#2393) (diff) | |
download | sway-7d8413d9628ed493790454410a28b9f0c41444e6.tar.gz sway-7d8413d9628ed493790454410a28b9f0c41444e6.tar.zst sway-7d8413d9628ed493790454410a28b9f0c41444e6.zip |
Reset signal mask after fork
wlroots uses wl_event_loop_add_signal to handle SIGUSR1 from Xwayland.
wl_event_loop_add_signal works by masking the signal and receiving it from a
signalfd. The signal mask is preserved across fork and exec, so subprocesses
spawned by Sway start with SIGUSR1 masked. Most subprocesses do not expect this
and never unmask the signal, resulting in missing functionality or unexpected
behavior for processes that use SIGUSR1 (such as i3status).
Fix this by unmasking all signals between fork and exec.
Diffstat (limited to 'swaybar')
0 files changed, 0 insertions, 0 deletions