Subject: CVS commit: pkgsrc/chat/i2cbd
To: None <pkgsrc-changes@NetBSD.org>
From: Thor Lancelot Simon <tls@netbsd.org>
List: pkgsrc-changes
Date: 05/11/2006 01:54:33
Module Name:	pkgsrc
Committed By:	tls
Date:		Thu May 11 01:54:33 UTC 2006

Modified Files:
	pkgsrc/chat/i2cbd: Makefile
Added Files:
	pkgsrc/chat/i2cbd/patches: patch-aj

Log Message:
Don't set O_NDELAY (and leave it set!) on all sockets, all the time.  This
was making select always return immediately and was causing the daemon to
spin on CPU.

Instead, set O_NONBLOCK (= O_NDELAY) on sockets only when reading/writing
them, and clear it afterwards, so select is always safe.


To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 pkgsrc/chat/i2cbd/Makefile
cvs rdiff -r0 -r1.1 pkgsrc/chat/i2cbd/patches/patch-aj

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.