aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config/bar.c')
-rw-r--r--sway/config/bar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c
index e09add44..908b2865 100644
--- a/sway/config/bar.c
+++ b/sway/config/bar.c
@@ -1,4 +1,3 @@
1#define _POSIX_C_SOURCE 200809L
2#include <signal.h> 1#include <signal.h>
3#include <stdbool.h> 2#include <stdbool.h>
4#include <stdio.h> 3#include <stdio.h>
@@ -219,6 +218,8 @@ static void invoke_swaybar(struct bar_config *bar) {
219 sigprocmask(SIG_SETMASK, &set, NULL); 218 sigprocmask(SIG_SETMASK, &set, NULL);
220 signal(SIGPIPE, SIG_DFL); 219 signal(SIGPIPE, SIG_DFL);
221 220
221 restore_nofile_limit();
222
222 pid = fork(); 223 pid = fork();
223 if (pid < 0) { 224 if (pid < 0) {
224 sway_log_errno(SWAY_ERROR, "fork failed"); 225 sway_log_errno(SWAY_ERROR, "fork failed");
@@ -254,7 +255,6 @@ static void invoke_swaybar(struct bar_config *bar) {
254 } 255 }
255 256
256 sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id); 257 sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id);
257 return;
258} 258}
259 259
260void load_swaybar(struct bar_config *bar) { 260void load_swaybar(struct bar_config *bar) {