aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-05-26 21:00:43 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-05-26 21:00:43 +0000
commit24f0a9980d5dd66fee91944873db16f916eefadb (patch)
treec5cac9dbfe3c6cd514368b7727cd70b7ced1b23e /usr.sbin/sysinstall
parentfea7a60b7b88926730ef9be6ee83105c3d7d0dd1 (diff)
Notes
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r--usr.sbin/sysinstall/system.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index b4ee445b39eb2..a98d52fd8bd2c 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.36 1995/05/26 19:28:05 jkh Exp $
+ * $Id: system.c,v 1.37 1995/05/26 20:31:00 jkh Exp $
*
* Jordan Hubbard
*
@@ -101,8 +101,13 @@ systemShutdown(void)
DialogActive = FALSE;
}
/* REALLY exit! */
- if (getpid() == 1)
+ if (RunningAsInit) {
+ int on = 1;
+
+ /* Put the console back */
+ ioctl(0, TIOCCONS, &on);
reboot(RB_HALT);
+ }
else
exit(1);
}