From 5afff6e1dedbd9da01b09de821fa6f6440ea702d Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 22 Jun 2020 09:23:33 +0200 Subject: [PATCH] fix pach --- config.h/slstatus/sigusr.patch | 30 +++++++++++++++++++ ...tus-sigusr-refresh-2020-06-18-b14e039.diff | 0 2 files changed, 30 insertions(+) create mode 100644 config.h/slstatus/sigusr.patch delete mode 100644 config.h/slstatus/slstatus-sigusr-refresh-2020-06-18-b14e039.diff diff --git a/config.h/slstatus/sigusr.patch b/config.h/slstatus/sigusr.patch new file mode 100644 index 0000000..410cf57 --- /dev/null +++ b/config.h/slstatus/sigusr.patch @@ -0,0 +1,30 @@ +--- + slstatus.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/slstatus.c b/slstatus.c +index 96fa5b6..499cd30 100644 +--- a/slstatus.c ++++ b/slstatus.c +@@ -26,9 +26,8 @@ static Display *dpy; + static void + terminate(const int signo) + { +- (void)signo; +- +- done = 1; ++ if (signo != SIGUSR1) ++ done = 1; + } + + static void +@@ -72,6 +71,7 @@ main(int argc, char *argv[]) + act.sa_handler = terminate; + sigaction(SIGINT, &act, NULL); + sigaction(SIGTERM, &act, NULL); ++ sigaction(SIGUSR1, &act, NULL); + + if (!sflag && !(dpy = XOpenDisplay(NULL))) { + die("XOpenDisplay: Failed to open display"); +-- +2.20.1 diff --git a/config.h/slstatus/slstatus-sigusr-refresh-2020-06-18-b14e039.diff b/config.h/slstatus/slstatus-sigusr-refresh-2020-06-18-b14e039.diff deleted file mode 100644 index e69de29..0000000 -- 2.20.1