svn commit: r201352 - head/sys/kern
Brooks Davis
brooks at FreeBSD.org
Thu Dec 31 20:56:29 UTC 2009
Author: brooks
Date: Thu Dec 31 20:56:28 2009
New Revision: 201352
URL: http://svn.freebsd.org/changeset/base/201352
Log:
If a filter has already been added, actually return EEXIST when trying
at add it again.
MFC after: 1 week
Modified:
head/sys/kern/kern_event.c
Modified: head/sys/kern/kern_event.c
==============================================================================
--- head/sys/kern/kern_event.c Thu Dec 31 20:44:38 2009 (r201351)
+++ head/sys/kern/kern_event.c Thu Dec 31 20:56:28 2009 (r201352)
@@ -867,6 +867,7 @@ kqueue_add_filteropts(int filt, struct f
{
int error;
+ error = 0;
if (filt > 0 || filt + EVFILT_SYSCOUNT < 0) {
printf(
"trying to add a filterop that is out of range: %d is beyond %d\n",
@@ -883,7 +884,7 @@ kqueue_add_filteropts(int filt, struct f
}
mtx_unlock(&filterops_lock);
- return (0);
+ return (error);
}
int
More information about the svn-src-head
mailing list