summaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/termcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sysinstall/termcap.c')
-rw-r--r--usr.sbin/sysinstall/termcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c
index 4f2b2e90cd9e1..4dc36c2ce4886 100644
--- a/usr.sbin/sysinstall/termcap.c
+++ b/usr.sbin/sysinstall/termcap.c
@@ -105,7 +105,7 @@ set_termcap(void)
else {
int i, on;
- if (getpid() == 1) {
+ if (RunningAsInit) {
DebugFD = open("/dev/ttyv1", O_WRONLY);
if (DebugFD != -1) {
on = 1;