Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 09:17:45 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r265812 - user/dchagin/lemul/sys/compat/linux
Message-ID:  <201405100917.s4A9HjLs013655@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405100917.s4A9HjLs013655>