Subject: CVS commit: pkgsrc/sysutils/fam
To: None <pkgsrc-changes@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: pkgsrc-changes
Date: 01/05/2005 16:21:06
Module Name:	pkgsrc
Committed By:	jmmv
Date:		Wed Jan  5 16:21:06 UTC 2005

Modified Files:
	pkgsrc/sysutils/fam: Makefile
	pkgsrc/sysutils/fam/files: IMonKQueue.c++

Log Message:
Fix some long-standing kqueue bugs that have been bothering me for a long
time.  For example, simply running 'nautilus /' could lock up famd in pipewr
status.  To fix:

- Make the struct devino's sorting function work properly; otherwise the
  map behaves incorrectly.
- Handle kqueue errors if they are returned as an entry in the events table
  (with flags containing EV_ERROR).

While here, add more debugging code that helped me catch this issue (some
extra messages and assertions).

Also reenable assertions (except on Darwin as, according to version 1.14 of
the Makefile, they cause problems).

Not bumping revision because kqueue support is still off by default.


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 pkgsrc/sysutils/fam/Makefile
cvs rdiff -r1.2 -r1.3 pkgsrc/sysutils/fam/files/IMonKQueue.c++

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