diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-11 08:02:09 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-11 08:02:09 +0000 |
commit | 8ec53d24df821e88150e537da0fc077dd83499cb (patch) | |
tree | 2573abdf1fcae2b4f867cdfc6fae930d564a4114 /usr.sbin/sade/termcap.c | |
parent | f27ab1365acf02701e1f0a28f6c6b42aaeb92384 (diff) | |
download | FreeBSD-src-8ec53d24df821e88150e537da0fc077dd83499cb.zip FreeBSD-src-8ec53d24df821e88150e537da0fc077dd83499cb.tar.gz |
Misc doc cleanup.
Diffstat (limited to 'usr.sbin/sade/termcap.c')
-rw-r--r-- | usr.sbin/sade/termcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sade/termcap.c b/usr.sbin/sade/termcap.c index a6b643b..834ea0f 100644 --- a/usr.sbin/sade/termcap.c +++ b/usr.sbin/sade/termcap.c @@ -33,8 +33,11 @@ set_termcap(void) term = getenv("TERM"); stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay); - if (getpid() != 1) + if (getpid() != 1) { DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644); + if (DebugFD < 0) + DebugFD = open("/dev/null", O_RDWR, 0); + } if (stat < 0) { if (!term) { |