mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Use pthread_atfork() to restore signals and NOFILE limit
This ensures these functions are always called (even when a library such as wlroots or libc perform the fork) and removes the need to manually call them.
This commit is contained in:
parent
86ff19fade
commit
0e19d85d37
7 changed files with 23 additions and 28 deletions
|
|
@ -79,7 +79,7 @@ libudev = wlroots_features['libinput_backend'] ? dependency('libudev') : null_de
|
|||
math = cc.find_library('m')
|
||||
rt = cc.find_library('rt')
|
||||
xcb_icccm = wlroots_features['xwayland'] ? dependency('xcb-icccm') : null_dep
|
||||
threads = dependency('threads') # for pthread_setschedparam
|
||||
threads = dependency('threads') # for pthread_setschedparam and pthread_atfork
|
||||
|
||||
if get_option('sd-bus-provider') == 'auto'
|
||||
if not get_option('tray').disabled()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue