diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-12-12 08:23:51 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-12-12 08:23:51 +0000 |
commit | d62f16530488e6a771c4b902ed4eef70ee8b4178 (patch) | |
tree | 882af1647b58c70906b72f8c7dce11e231d3d911 /usr.sbin/sade/main.c | |
parent | 7565cfa2eac3e3ef6bf3a5d05192c0a68b0e4f44 (diff) | |
download | src-d62f16530488e6a771c4b902ed4eef70ee8b4178.tar.gz src-d62f16530488e6a771c4b902ed4eef70ee8b4178.zip |
Notes
Diffstat (limited to 'usr.sbin/sade/main.c')
-rw-r--r-- | usr.sbin/sade/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/sade/main.c b/usr.sbin/sade/main.c index b5ebbb8bc839..90a436740270 100644 --- a/usr.sbin/sade/main.c +++ b/usr.sbin/sade/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(); |