aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config')
-rw-r--r--sway/config/bar.c2
-rw-r--r--sway/config/output.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c
index e09add44..d1b342e6 100644
--- a/sway/config/bar.c
+++ b/sway/config/bar.c
@@ -219,6 +219,8 @@ static void invoke_swaybar(struct bar_config *bar) {
219 sigprocmask(SIG_SETMASK, &set, NULL); 219 sigprocmask(SIG_SETMASK, &set, NULL);
220 signal(SIGPIPE, SIG_DFL); 220 signal(SIGPIPE, SIG_DFL);
221 221
222 restore_nofile_limit();
223
222 pid = fork(); 224 pid = fork();
223 if (pid < 0) { 225 if (pid < 0) {
224 sway_log_errno(SWAY_ERROR, "fork failed"); 226 sway_log_errno(SWAY_ERROR, "fork failed");
diff --git a/sway/config/output.c b/sway/config/output.c
index 8e937b28..6d39c2f5 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -750,6 +750,8 @@ static bool _spawn_swaybg(char **command) {
750 sway_log_errno(SWAY_ERROR, "fork failed"); 750 sway_log_errno(SWAY_ERROR, "fork failed");
751 return false; 751 return false;
752 } else if (pid == 0) { 752 } else if (pid == 0) {
753 restore_nofile_limit();
754
753 pid = fork(); 755 pid = fork();
754 if (pid < 0) { 756 if (pid < 0) {
755 sway_log_errno(SWAY_ERROR, "fork failed"); 757 sway_log_errno(SWAY_ERROR, "fork failed");