summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-24 23:36:50 +0000
committerjkh <jkh@FreeBSD.org>1995-05-24 23:36:50 +0000
commitfd2d2cc4c9874f2a447670d0290559251cc58582 (patch)
treeb638d3010c29dfebadb1fa827d65ed0b667cbaec /release/sysinstall/system.c
parent456d8b24246a10fdae8a8b74e98ec78418620428 (diff)
downloadFreeBSD-src-fd2d2cc4c9874f2a447670d0290559251cc58582.zip
FreeBSD-src-fd2d2cc4c9874f2a447670d0290559251cc58582.tar.gz
Whoops - that last feature I committed to put a diagnostic shell in
ttyv3 would work a lot better if I actually exec'd a shell! :-) Reviewed by:
Diffstat (limited to 'release/sysinstall/system.c')
-rw-r--r--release/sysinstall/system.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c
index e5b685b..8eb078b 100644
--- a/release/sysinstall/system.c
+++ b/release/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.29 1995/05/23 02:41:18 jkh Exp $
+ * $Id: system.c,v 1.30 1995/05/24 22:37:44 jkh Exp $
*
* Jordan Hubbard
*
@@ -95,6 +95,8 @@ systemInitialize(int argc, char **argv)
ioctl(0, TIOCSCTTY, (char *)NULL);
dup2(0, 1);
dup2(0, 2);
+ execlp(sh, "-sh", 0);
+ exit(1);
}
/* XXX - libdialog has particularly bad return value checking */
OpenPOWER on IntegriCloud