From 7a965bd877d7a1fde476616c2f3392d9d881f3c1 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 6 Jun 2012 17:27:54 +0200 Subject: [PATCH] Print error message if 'execve' failed --- os/src/app/chroot/main.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/src/app/chroot/main.cc b/os/src/app/chroot/main.cc index f28a6add49..5ef7676ad5 100644 --- a/os/src/app/chroot/main.cc +++ b/os/src/app/chroot/main.cc @@ -207,5 +207,7 @@ int main(int, char **argv) } execve("init", argv, environ); + + PERR("execve failed with errno=%d", errno); return 0; }