[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS Update: src



CVSROOT:	/cvs
Module name:	src
Repository:	src/sys/miscfs/fifofs/
Changes by:	odin@akbar.cleannorth.org.	04/05/27 01:45:18

Modified files:
	src/sys/miscfs/fifofs/: fifo_vnops.c 

Log message:
	From OPENBSD_3_5
	
	MFC:
	Fix by millert@
	
	Fix a bug that occurs when a FIFO is opened for writing with
	O_NONBLOCK set and there are no readers.  Before returning ENXIO
	fifo_open calls VOP_CLOSE (and hence fifo_close).  However, since
	fi_writers has not yet been incremented, when fifo_close decements
	fi_writers it is one too few.  This could cause qmail processes
	to spin, consuming all the CPU.
	
	Noticed by avsm@ and henning@
	
	ok millert@ henning@


Main Menu:

Site Tools:


Here, spammer, have some addresses.