From 8803fd038808c9f70baef2691d0d9ba040ed679d Mon Sep 17 00:00:00 2001 From: cgd Date: Thu, 27 Jan 1994 05:30:38 +0000 Subject: [PATCH] if CN_REMOTE, don't redirect output. this file needs some help, but now at least i'm thinking about it again. --- sys/arch/i386/i386/cons.c | 4 ++-- sys/dev/cons.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/i386/i386/cons.c b/sys/arch/i386/i386/cons.c index bb0ea8b902b4..cb2285a14cb3 100644 --- a/sys/arch/i386/i386/cons.c +++ b/sys/arch/i386/i386/cons.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 - * $Id: cons.c,v 1.8 1993/07/07 11:00:23 deraadt Exp $ + * $Id: cons.c,v 1.9 1994/01/27 05:30:38 cgd Exp $ */ @@ -149,7 +149,7 @@ cnwrite(dev, uio, flag) { if (cn_tab == NULL) return (0); - if (constty) /* 16 Aug 92*/ + if (constty && cn_tab->cn_pri != CN_REMOTE) dev = constty->t_dev; else dev = cn_tab->cn_dev; diff --git a/sys/dev/cons.c b/sys/dev/cons.c index bb0ea8b902b4..cb2285a14cb3 100644 --- a/sys/dev/cons.c +++ b/sys/dev/cons.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 - * $Id: cons.c,v 1.8 1993/07/07 11:00:23 deraadt Exp $ + * $Id: cons.c,v 1.9 1994/01/27 05:30:38 cgd Exp $ */ @@ -149,7 +149,7 @@ cnwrite(dev, uio, flag) { if (cn_tab == NULL) return (0); - if (constty) /* 16 Aug 92*/ + if (constty && cn_tab->cn_pri != CN_REMOTE) dev = constty->t_dev; else dev = cn_tab->cn_dev;