summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/main.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-12 08:23:51 +0000
committerjkh <jkh@FreeBSD.org>1996-12-12 08:23:51 +0000
commit29d7f1c31842286de505e626253394a7df40547d (patch)
tree882af1647b58c70906b72f8c7dce11e231d3d911 /usr.sbin/sysinstall/main.c
parent7f054c1fb963f0800116d282835311a5a77e41a5 (diff)
downloadFreeBSD-src-29d7f1c31842286de505e626253394a7df40547d.zip
FreeBSD-src-29d7f1c31842286de505e626253394a7df40547d.tar.gz
Fix some bogons in my close() handling.
Diffstat (limited to 'usr.sbin/sysinstall/main.c')
-rw-r--r--usr.sbin/sysinstall/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c
index b5ebbb8..90a4367 100644
--- a/usr.sbin/sysinstall/main.c
+++ b/usr.sbin/sysinstall/main.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated for what's essentially a complete rewrite.
*
- * $Id: main.c,v 1.29 1996/12/11 09:35:02 jkh Exp $
+ * $Id: main.c,v 1.30 1996/12/11 18:23:17 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -42,7 +42,7 @@
static void
screech(int sig)
{
- fprintf(stderr, "\007Fatal signal %d caught! I'm dead..\n", sig);
+ printf("\007Fatal signal %d caught! I'm dead..\n", sig);
if (RunningAsInit)
pause();
else
@@ -79,9 +79,13 @@ main(int argc, char **argv)
}
/* Try to preserve our scroll-back buffer */
- if (OnVTY)
+ if (OnVTY) {
for (curr = 0; curr < 25; curr++)
putchar('\n');
+ /* Move stderr aside */
+ if (DebugFD)
+ dup2(DebugFD, 2);
+ }
/* Probe for all relevant devices on the system */
deviceGetAll();
OpenPOWER on IntegriCloud