From ce52673f5d443ab7f9b63fee013e82d02d71fd9f Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 6 Feb 2014 12:18:01 +0000 Subject: Inform the user when execvp() fails --- sinit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sinit.c b/sinit.c index e0132f4..c255205 100644 --- a/sinit.c +++ b/sinit.c @@ -111,6 +111,7 @@ spawn(const Arg *arg) setsid(); setpgid(0, 0); execvp(p, arg->v); + weprintf("sinit: execvp %s:", p); _exit(errno == ENOENT ? 127 : 126); } } -- cgit v1.2.3-54-g00ecf