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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c
index 767534a6..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>
@@ -91,7 +90,7 @@ struct bar_config *default_bar_config(void) {
91 } 90 }
92 bar->outputs = NULL; 91 bar->outputs = NULL;
93 bar->position = strdup("bottom"); 92 bar->position = strdup("bottom");
94 bar->pango_markup = false; 93 bar->pango_markup = PANGO_MARKUP_DEFAULT;
95 bar->swaybar_command = NULL; 94 bar->swaybar_command = NULL;
96 bar->font = NULL; 95 bar->font = NULL;
97 bar->height = 0; 96 bar->height = 0;
@@ -217,6 +216,9 @@ static void invoke_swaybar(struct bar_config *bar) {
217 sigset_t set; 216 sigset_t set;
218 sigemptyset(&set); 217 sigemptyset(&set);
219 sigprocmask(SIG_SETMASK, &set, NULL); 218 sigprocmask(SIG_SETMASK, &set, NULL);
219 signal(SIGPIPE, SIG_DFL);
220
221 restore_nofile_limit();
220 222
221 pid = fork(); 223 pid = fork();
222 if (pid < 0) { 224 if (pid < 0) {
@@ -253,7 +255,6 @@ static void invoke_swaybar(struct bar_config *bar) {
253 } 255 }
254 256
255 sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id); 257 sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id);
256 return;
257} 258}
258 259
259void load_swaybar(struct bar_config *bar) { 260void load_swaybar(struct bar_config *bar) {