Date: Wed, 24 Oct 2001 14:42:48 -0700 (PDT) From: Matthew Jacob <mjacob@feral.com> To: current@freebsd.org Subject: Re: latest patch? (fwd) Message-ID: <Pine.BSF.4.21.0110241442370.82970-100000@beppo>
next in thread | raw e-mail | index | archive | help
This seemed to fix things for me. ---------- Forwarded message ---------- Date: Wed, 24 Oct 2001 14:21:59 -0700 (PDT) From: Matthew Jacob <mjacob@feral.com> To: Jonathan Lemon <jlemon@flugsvamp.com> Subject: Re: latest patch? I sure saw it on an XP1000. Index: tty_cons.c =================================================================== RCS file: /home/ncvs/src/sys/kern/tty_cons.c,v retrieving revision 1.93 diff -u -r1.93 tty_cons.c --- tty_cons.c 2001/10/23 20:25:50 1.93 +++ tty_cons.c 2001/10/24 21:06:19 @@ -53,6 +53,7 @@ #include <sys/tty.h> #include <sys/uio.h> #include <sys/vnode.h> +#include <sys/fcntl.h> #include <machine/cpu.h> @@ -230,6 +231,8 @@ } } +void cndebug(char *); + void cndebug(char *str) { @@ -365,7 +368,7 @@ { struct cn_device *cnd; - openflag = flag; + openflag = flag | FWRITE; /* XXX on the FWRITE */ cn_is_open = 1; /* console is logically open */ if (cn_mute) return (0); @@ -382,7 +385,7 @@ STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { if (cnd->cnd_vp == NULL) continue; - vn_close(cnd->cnd_vp, mode, td->td_proc->p_ucred, td); + vn_close(cnd->cnd_vp, openflag, td->td_proc->p_ucred, td); cnd->cnd_vp = NULL; } cn_is_open = 0; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0110241442370.82970-100000>