X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=surf.c;h=32c19204c4b643a89e06442fed663e30a45d340e;hp=842b7ea68eec288b6e21933567b606d2f63b8aa6;hb=cdc80731fba6ce33bf6803009bf2b838b3be8192;hpb=b87123ac9b8fb9b0d9b129c1268db97441d395f0 diff --git a/surf.c b/surf.c index 842b7ea..32c1920 100644 --- a/surf.c +++ b/surf.c @@ -643,9 +643,9 @@ spawn(Client *c, const Arg *a) close(ConnectionNumber(dpy)); setsid(); execvp(((char **)a->v)[0], (char **)a->v); - fprintf(stderr, "surf: execvp %s", ((char **)a->v)[0]); + fprintf(stderr, "%s: execvp %s", argv0, ((char **)a->v)[0]); perror(" failed"); - exit(0); + exit(1); } }