Subject: CVS commit: [pkgsrc-2004Q4] pkgsrc/sysutils/fam
To: None <pkgsrc-changes@NetBSD.org>
From: Lubomir Sedlacik <salo@netbsd.org>
List: pkgsrc-changes
Date: 01/06/2005 00:39:56
Module Name:	pkgsrc
Committed By:	salo
Date:		Thu Jan  6 00:39:56 UTC 2005

Modified Files:
	pkgsrc/sysutils/fam [pkgsrc-2004Q4]: Makefile
	pkgsrc/sysutils/fam/files [pkgsrc-2004Q4]: IMonKQueue.c++

Log Message:
Pullup ticket 209 - requested by Julio M. Merino Vidal
usability fix for fam

        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.20 -r1.20.2.1 pkgsrc/sysutils/fam/Makefile
cvs rdiff -r1.2 -r1.2.2.1 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.