diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-05 15:21:40 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-05 15:21:40 +0000 |
commit | a6ed05dd52e34d1509c80e02be15e5d1fee6e80a (patch) | |
tree | 039f2eb5bd5dbcb5237023a8440f0f8a5b83b55b | |
parent | 3e01f8d47f8677c4faead6c08fbbfcf42810b1ba (diff) | |
download | drakx-backup-do-not-use-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar drakx-backup-do-not-use-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar.gz drakx-backup-do-not-use-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar.bz2 drakx-backup-do-not-use-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.tar.xz drakx-backup-do-not-use-a6ed05dd52e34d1509c80e02be15e5d1fee6e80a.zip |
exit when exec fails after fork, i don't want two stage1 processes!
-rw-r--r-- | mdk-stage1/stage1.c | 1 |
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); |