Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2014 18:15:07 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r265335 - user/dchagin/lemul/sys/compat/linux
Message-ID:  <201405041815.s44IF7dw011954@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sun May  4 18:15:07 2014
New Revision: 265335
URL: http://svnweb.freebsd.org/changeset/base/265335

Log:
  Destroy the epoll private data in a case of execing from
  Linux binary to Linux binary.

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

Modified: user/dchagin/lemul/sys/compat/linux/linux_emul.c
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux_emul.c	Sun May  4 17:53:01 2014	(r265334)
+++ user/dchagin/lemul/sys/compat/linux/linux_emul.c	Sun May  4 18:15:07 2014	(r265335)
@@ -177,6 +177,11 @@ linux_proc_init(struct thread *td, struc
 		KASSERT(em != NULL, ("proc_init: emuldata not found in exec case.\n"));
 
 		em->em_tid = td->td_proc->p_pid;
+
+		 /* epoll should be destroyed in a case of exec. */
+		pem = pem_find(td->td_proc);
+		KASSERT(pem != NULL, ("proc_exit: proc emuldata not found.\n"));
+		epoll_destroy_emuldata(pem);
 	}
 
 	em->child_clear_tid = NULL;



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