mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Detect that bininst has finished and go straight into the new system.
Reviewed by: phk
This commit is contained in:
parent
3d8022fe49
commit
df8cd9c1ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4285
@ -6,7 +6,7 @@
|
||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $Id: exec.c,v 1.4 1994/10/26 05:40:59 phk Exp $
|
||||
* $Id: exec.c,v 1.5 1994/10/29 10:01:32 phk Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -62,6 +62,7 @@ exec(int magic, char *cmd, char *args, ...)
|
||||
close(debug_fd);
|
||||
break;
|
||||
case 2:
|
||||
case 3:
|
||||
close(debug_fd);
|
||||
default:
|
||||
break;
|
||||
@ -72,7 +73,8 @@ exec(int magic, char *cmd, char *args, ...)
|
||||
|
||||
while ((w = wait(&status)) != pid && w != -1)
|
||||
;
|
||||
|
||||
if (w == 20 && magic == 3) /* special case for bininst */
|
||||
execl("/sbin/init", "/sbin/init", 0);
|
||||
if (w == -1)
|
||||
Fatal("Child process %s terminated abnormally\n", cmd);
|
||||
return(status);
|
||||
|
@ -6,7 +6,7 @@
|
||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $Id: stage5.c,v 1.12 1994/11/07 13:48:53 jkh Exp $
|
||||
* $Id: stage5.c,v 1.13 1994/11/08 03:41:42 jkh Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -45,6 +45,6 @@ stage5()
|
||||
if (exec_sh)
|
||||
exec (2,"/stand/sh","/stand/-sh", 0);
|
||||
else
|
||||
exec (2,"/stand/bininst","/stand/-bininst", 0);
|
||||
exec (3,"/stand/bininst","/stand/-bininst", 0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user