dwl

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

commit 7cee5060bc400bb0d81472e9c449cc1bc63b0409
parent 5b51bb82e234010aea5b72aa97d8679928efe259
Author: David Donahue <david.donahue2996@gmail.com>
Date:   Sat,  6 Mar 2021 12:20:56 -0600

added redirect from stdout to stderr for spawned processes to prevent conflicts with the statusbar outputs

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

diff --git a/dwl.c b/dwl.c @@ -1846,6 +1846,7 @@ run(char *startup_cmd) if (startup_pid < 0) EBARF("startup: fork"); if (startup_pid == 0) { + dup2(STDERR_FILENO, STDOUT_FILENO); execl("/bin/sh", "/bin/sh", "-c", startup_cmd, NULL); EBARF("startup: execl"); } @@ -2152,6 +2153,7 @@ void spawn(const Arg *arg) { if (fork() == 0) { + dup2(STDERR_FILENO, STDOUT_FILENO); setsid(); execvp(((char **)arg->v)[0], (char **)arg->v); EBARF("dwl: execvp %s failed", ((char **)arg->v)[0]);