dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 9c592da01f7648ff1efb69e851ced554b3231096
parent df11b7a7864b416bba52e00d6ad7997d9a7c19b0
Author: Devin J. Pohly <djpohly@gmail.com>
Date:   Thu, 15 Jun 2023 23:57:16 -0500

Reset ignored signal handler in spawn() as well

Diffstat:
Mdwl.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/dwl.c b/dwl.c @@ -2327,6 +2327,9 @@ void spawn(const Arg *arg) { if (fork() == 0) { + struct sigaction sa = {.sa_flags = SA_RESTART, .sa_handler = SIG_DFL}; + sigemptyset(&sa.sa_mask); + sigaction(SIGCHLD, &sa, NULL); dup2(STDERR_FILENO, STDOUT_FILENO); setsid(); execvp(((char **)arg->v)[0], (char **)arg->v);