diff options
author | sin <sin@2f30.org> | 2014-02-06 12:18:01 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-02-06 12:18:01 +0000 |
commit | ce52673f5d443ab7f9b63fee013e82d02d71fd9f (patch) | |
tree | 6f1d2c9c05e05d8d9045b482b36ba055fa413932 | |
parent | 561e9b0e65d605404da4506f18e630143ed5d6df (diff) |
Inform the user when execvp() fails
-rw-r--r-- | sinit.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } } |