aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--monsterwm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 841d439..d3e5c87 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -732,9 +732,7 @@ void spawn(const Arg *arg) {
if (dis) close(ConnectionNumber(dis));
setsid();
execvp((char*)arg->com[0], (char**)arg->com);
- fprintf(stderr, "error: execvp %s", (char *)arg->com[0]);
- perror(" failed"); /* also prints the err msg */
- exit(EXIT_SUCCESS);
+ err(EXIT_SUCCESS, "execvp %s", (char *)arg->com[0]);
}
/* arrange windows in normal or bottom stack tile */