aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-02-06 12:18:01 +0000
committersin <sin@2f30.org>2014-02-06 12:18:01 +0000
commitce52673f5d443ab7f9b63fee013e82d02d71fd9f (patch)
tree6f1d2c9c05e05d8d9045b482b36ba055fa413932
parent561e9b0e65d605404da4506f18e630143ed5d6df (diff)
Inform the user when execvp() fails
-rw-r--r--sinit.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}