mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-08 12:14:50 +00:00
update coredump patch
5ffa5ec3
This commit is contained in:
parent
6830a60d8a
commit
5c2c36c7cc
@ -3,7 +3,7 @@ Generate a coredump if dwl exited abnormally (to be more usefull you need to com
|
||||
|
||||
### Download
|
||||
- [git branch](https://codeberg.org/sevz/dwl/src/branch/coredump)
|
||||
- [2023-11-30](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/coredump/coredump.patch)
|
||||
- [2024-06-07](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/coredump/coredump.patch)
|
||||
|
||||
### Authors
|
||||
- [sevz](https://codeberg.org/sevz)
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 38bf34759e5eb3aed9fd14429eee8a1e509c014e Mon Sep 17 00:00:00 2001
|
||||
From 5ffa5ec3a2a6f90a8a6345c6f1f7b9f197742aad Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
|
||||
<leohdz172@protonmail.com>
|
||||
Date: Wed, 5 Oct 2022 23:07:13 -0500
|
||||
@ -13,7 +13,7 @@ Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index 10d5a5b..62cdb5a 100644
|
||||
index 6f041a0d..cb52be99 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -7,6 +7,7 @@
|
||||
@ -24,7 +24,7 @@ index 10d5a5b..62cdb5a 100644
|
||||
#include <sys/wait.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
@@ -334,6 +335,8 @@ static void zoom(const Arg *arg);
|
||||
@@ -353,6 +354,8 @@ static void zoom(const Arg *arg);
|
||||
|
||||
/* variables */
|
||||
static const char broken[] = "broken";
|
||||
@ -33,7 +33,7 @@ index 10d5a5b..62cdb5a 100644
|
||||
static pid_t child_pid = -1;
|
||||
static int locked;
|
||||
static void *exclusive_focus;
|
||||
@@ -1972,6 +1975,7 @@ run(char *startup_cmd)
|
||||
@@ -2143,6 +2146,7 @@ run(char *startup_cmd)
|
||||
if ((child_pid = fork()) < 0)
|
||||
die("startup: fork:");
|
||||
if (child_pid == 0) {
|
||||
@ -41,7 +41,7 @@ index 10d5a5b..62cdb5a 100644
|
||||
dup2(piperw[0], STDIN_FILENO);
|
||||
close(piperw[0]);
|
||||
close(piperw[1]);
|
||||
@@ -2410,6 +2414,7 @@ void
|
||||
@@ -2547,6 +2551,7 @@ void
|
||||
spawn(const Arg *arg)
|
||||
{
|
||||
if (fork() == 0) {
|
||||
@ -49,7 +49,7 @@ index 10d5a5b..62cdb5a 100644
|
||||
dup2(STDERR_FILENO, STDOUT_FILENO);
|
||||
setsid();
|
||||
execvp(((char **)arg->v)[0], (char **)arg->v);
|
||||
@@ -2928,6 +2933,10 @@ main(int argc, char *argv[])
|
||||
@@ -3083,6 +3088,10 @@ main(int argc, char *argv[])
|
||||
char *startup_cmd = NULL;
|
||||
int c;
|
||||
|
||||
@ -61,5 +61,5 @@ index 10d5a5b..62cdb5a 100644
|
||||
if (c == 's')
|
||||
startup_cmd = optarg;
|
||||
--
|
||||
2.43.0
|
||||
2.45.2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user