summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/termcap.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-06-11 08:02:09 +0000
committerjkh <jkh@FreeBSD.org>1996-06-11 08:02:09 +0000
commit8ec53d24df821e88150e537da0fc077dd83499cb (patch)
tree2573abdf1fcae2b4f867cdfc6fae930d564a4114 /usr.sbin/sysinstall/termcap.c
parentf27ab1365acf02701e1f0a28f6c6b42aaeb92384 (diff)
downloadFreeBSD-src-8ec53d24df821e88150e537da0fc077dd83499cb.zip
FreeBSD-src-8ec53d24df821e88150e537da0fc077dd83499cb.tar.gz
Misc doc cleanup.
Diffstat (limited to 'usr.sbin/sysinstall/termcap.c')
-rw-r--r--usr.sbin/sysinstall/termcap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c
index a6b643b..834ea0f 100644
--- a/usr.sbin/sysinstall/termcap.c
+++ b/usr.sbin/sysinstall/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) {
OpenPOWER on IntegriCloud