Improved error messages

pull/11/head
Ashish Kumar Yadav 4 years ago
parent 56e123d52a
commit 94445ee8ad

@ -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]);

Loading…
Cancel
Save