mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -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
2bc286ae30
commit
692208118f
7 changed files with 23 additions and 28 deletions
|
|
@ -173,9 +173,6 @@ void server_fini(struct sway_server *server);
|
|||
bool server_start(struct sway_server *server);
|
||||
void server_run(struct sway_server *server);
|
||||
|
||||
void restore_nofile_limit(void);
|
||||
void restore_signals(void);
|
||||
|
||||
void handle_new_output(struct wl_listener *listener, void *data);
|
||||
|
||||
void handle_idle_inhibitor_v1(struct wl_listener *listener, void *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue