summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-06-05 15:21:40 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-06-05 15:21:40 +0000
commita6ed05dd52e34d1509c80e02be15e5d1fee6e80a (patch)
tree039f2eb5bd5dbcb5237023a8440f0f8a5b83b55b /mdk-stage1
parent3e01f8d47f8677c4faead6c08fbbfcf42810b1ba (diff)
downloaddrakx-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar
drakx-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar.gz
drakx-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar.bz2
drakx-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar.xz
drakx-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.zip
exit when exec fails after fork, i don't want two stage1 processes!
Diffstat (limited to 'mdk-stage1')
-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);