From 94445ee8ad92896e835490011a5365bf07d04e4f Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Wed, 8 Jul 2020 22:55:19 +0530 Subject: [PATCH] Improved error messages --- dwmblocks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dwmblocks.c b/dwmblocks.c index 7b048e0..be6b1f3 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -57,7 +57,7 @@ buttonhandler(int signal, siginfo_t *si, void *ucontext) setsid(); execv(arg[0], arg); - perror("buttonhandler - execv"); + perror("buttonhandler - child - execv"); _exit(127); } } @@ -82,7 +82,7 @@ getcmd(Block *block, int *sigval) close(ConnectionNumber(dpy)); close(fd[0]); if (dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO) { - perror("getcmd - dup2"); + perror("getcmd - child - dup2"); exit(1); } close(fd[1]); @@ -97,7 +97,7 @@ getcmd(Block *block, int *sigval) execv(arg[0], arg); } - perror("getcmd - execv"); + perror("getcmd - child - execv"); _exit(127); default: close(fd[1]);