mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
7d8413d962
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. |
||
---|---|---|
.. | ||
bar.c | ||
input.c | ||
output.c | ||
seat.c |