[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-commits-all
Subject:    svn commit: r201352 - head/sys/kern
From:       Brooks Davis <brooks () freebsd ! org>
Date:       2009-12-31 20:56:28
Message-ID: 200912312056.nBVKuSDS006451 () svn ! freebsd ! org
[Download RAW message or body]

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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic