Reset signal mask before executing commands (issue #674)

This commit is contained in:
o9000
2017-10-15 13:00:18 +02:00
parent 50c7bf77de
commit 407aef3786
3 changed files with 13 additions and 0 deletions

View File

@@ -59,6 +59,7 @@
#include "../panel.h"
#include "timer.h"
#include "signals.h"
void write_string(int fd, const char *s)
{
@@ -398,6 +399,7 @@ pid_t tint_exec(const char *command,
if (dir)
chdir(dir);
close_all_fds();
reset_signals();
if (terminal) {
#if !defined(__OpenBSD__)
fprintf(stderr, "tint2: executing in x-terminal-emulator: %s\n", command);