summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/stage1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 70a3c56b8..cf973f615 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -137,6 +137,7 @@ static void spawn_shell(void)
execve(shell_name[0], shell_name, grab_env());
log_message("execve of %s failed: %s", shell_name[0], strerror(errno));
+ exit(-1);
}
close(fd);