FreeBSD src
Go to file
Andrew Moore 5bb374bc76 patch 1of2 to prevent kill -1 syslogd from hanging the console
blindly applied patch provided by Christoph Robitschko:
*** cons.c.orig	Sat Jun 12 07:57:53 1993
--- cons.c	Thu Aug 19 22:34:53 1993
***************
*** 56,61 ****
--- 56,62 ----
  #include "sys/tty.h"
  #include "sys/file.h"
  #include "sys/conf.h"
+ #include "sys/vnode.h"

  #include "cons.h"

***************
*** 105,118 ****
--- 106,130 ----
  	(*cp->cn_init)(cp);
  }

+ static struct vnode	*cnopenvp = NULLVP;
+
+
  cnopen(dev, flag, mode, p)
  	dev_t dev;
  	int flag, mode;
  	struct proc *p;
  {
+ 	int		error;
+
+
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
+ 	if (cnopenvp == NULLVP)
+ 		if ((error = getdevvp(dev, &cnopenvp, VCHR))) {
+ 			printf("cnopen: getdevvp returned %d !\n", error);
+ 			return(error);
+ 		}
  	return ((*cdevsw[major(dev)].d_open)(dev, flag, mode, p));
  }

***************
*** 121,130 ****
  	int flag, mode;
  	struct proc *p;
  {
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
! 	return ((*cdevsw[major(dev)].d_close)(dev, flag, mode, p));
  }

  cnread(dev, uio, flag)
--- 133,153 ----
  	int flag, mode;
  	struct proc *p;
  {
+ 	int		error;
+
+
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
! 	if (vcount(cnopenvp) <= 1)
! 		error = (*cdevsw[major(dev)].d_close)(dev, flag, mode, p);
! 	else
! 		error = 0;
! 	if (error == 0) {
! 		vrele(cnopenvp);
! 		cnopenvp = NULLVP;
! 	return(error);
! 	}
  }

  cnread(dev, uio, flag)
1993-08-20 05:46:09 +00:00
bin 1003.2 requires that lexical comparisons be done in locale specific manner, 1993-08-17 16:06:00 +00:00
etc add more notes and examples 1993-08-15 07:11:52 +00:00
gnu chess is now in src/gnu, moved here from src/games 1993-08-20 03:23:17 +00:00
lib/csu/i386 Added ${COPY} knob to the install commands 1993-07-03 00:21:21 +00:00
libexec/makekey Libcrypt upgrade 1993-07-20 23:49:11 +00:00
sbin The fdisk man page doesn't show correctly the usage possibilities of 1993-08-10 10:31:35 +00:00
share/man/man4 add links to ../ 1993-07-23 21:29:57 +00:00
sys patch 1of2 to prevent kill -1 syslogd from hanging the console 1993-08-20 05:46:09 +00:00
usr.bin Added README which explains the copyright status of getopt(1) 1993-07-27 17:24:17 +00:00
usr.sbin TCPDUMP was installing in /usr/local/bin, changed to /usr/sbin. 1993-07-20 19:38:44 +00:00