Print error message if 'execve' failed

This commit is contained in:
Norman Feske 2012-06-06 17:27:54 +02:00
parent 491a1f9c52
commit 7a965bd877
1 changed files with 2 additions and 0 deletions

View File

@ -207,5 +207,7 @@ int main(int, char **argv)
}
execve("init", argv, environ);
PERR("execve failed with errno=%d", errno);
return 0;
}