svn commit: r265812 - user/dchagin/lemul/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sat May 10 09:17:46 UTC 2014


Author: dchagin
Date: Sat May 10 09:17:45 2014
New Revision: 265812
URL: http://svnweb.freebsd.org/changeset/base/265812

Log:
  Fix a bug in epoll_delete_event. fd parameter of the kern_kevent should
  be kqueue file descriptor not an ident file descriptor.

Modified:
  user/dchagin/lemul/sys/compat/linux/linux_event.c

Modified: user/dchagin/lemul/sys/compat/linux/linux_event.c
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux_event.c	Sat May 10 08:48:04 2014	(r265811)
+++ user/dchagin/lemul/sys/compat/linux/linux_event.c	Sat May 10 09:17:45 2014	(r265812)
@@ -474,8 +474,8 @@ epoll_delete_event(struct thread *td, st
 
 	ciargs.changelist = &kev;
 	EV_SET(&kev, fd, filter, EV_DELETE | EV_DISABLE, 0, 0, 0);
-	
-	error = kern_kevent(td, fd, 1, 0, &k_ops, NULL);
+
+	error = kern_kevent_fp(td, epfp, 1, 0, &k_ops, NULL);
 
 	/*
 	 * here we ignore ENONT, because we don't keep track of events here


More information about the svn-src-user mailing list