Bump to 5b2e5e7.

spawn: reduce 2 lines, change fprintf() + perror() + exit() to die("... :")

when calling die and the last character of the string corresponds to
':', die() will call perror(). See util.c

Also change EXIT_SUCCESS to EXIT_FAILURE

Ref.
https://git.suckless.org/dwm/commit/5b2e5e7a4001479e4dc3e245f96e49f7ea0da658.html
This commit is contained in:
bakkeby
2022-08-03 11:20:09 +02:00
parent 4b20c92b4c
commit 10aa27171f
2 changed files with 2 additions and 4 deletions

4
dwm.c
View File

@@ -3990,9 +3990,7 @@ spawn(const Arg *arg)
#endif // SPAWNCMD_PATCH
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]);
}
#if RIODRAW_PATCH
return pid;