aboutsummaryrefslogtreecommitdiff
path: root/sway/config/bar.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-08-02 13:03:54 +0100
committerGitHub <noreply@github.com>2018-08-02 13:03:54 +0100
commite2eaf7b9b521e67d38d24b5f8a38fee84c9295a2 (patch)
tree30f1998285da49fdf3bfe37b29c8c046b8095071 /sway/config/bar.c
parentd6095588a143710d25be47577ea65517770e7a74 (diff)
parent7d8413d9628ed493790454410a28b9f0c41444e6 (diff)
Merge pull request #2405 from marienz/sigmask
Reset signal mask after fork
Diffstat (limited to 'sway/config/bar.c')
-rw-r--r--sway/config/bar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c
index 3a74331e..ae9383d6 100644
--- a/sway/config/bar.c
+++ b/sway/config/bar.c
@@ -10,6 +10,7 @@
#include <sys/stat.h>
#include <signal.h>
#include <strings.h>
+#include <signal.h>
#include "sway/config.h"
#include "stringop.h"
#include "list.h"
@@ -175,6 +176,9 @@ void invoke_swaybar(struct bar_config *bar) {
if (bar->pid == 0) {
setpgid(0, 0);
close(filedes[0]);
+ sigset_t set;
+ sigemptyset(&set);
+ sigprocmask(SIG_SETMASK, &set, NULL);
// run custom swaybar
size_t len = snprintf(NULL, 0, "%s -b %s",