summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 989a165..43abb98 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1836,9 +1836,7 @@ spawn(const Arg *arg)
close(ConnectionNumber(dpy));
setsid();
execvp(((char **)arg->v)[0], (char **)arg->v);
- fprintf(stderr, "dwm: execvp %s", ((char **)arg->v)[0]);
- perror(" failed");
- exit(EXIT_SUCCESS);
+ die("dwm: execvp '%s' failed:", ((char **)arg->v)[0]);
}
}