Date: Sat, 31 Jan 2015 17:45:49 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r277986 - user/dchagin/lemul/sys/compat/linux Message-ID: <201501311745.t0VHjnEd000995@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Sat Jan 31 17:45:48 2015 New Revision: 277986 URL: https://svnweb.freebsd.org/changeset/base/277986 Log: Clean a style(9) bug. Use process sysentvec to detect the linux ABI. Modified: user/dchagin/lemul/sys/compat/linux/linux_misc.c Modified: user/dchagin/lemul/sys/compat/linux/linux_misc.c ============================================================================== --- user/dchagin/lemul/sys/compat/linux/linux_misc.c Sat Jan 31 17:35:53 2015 (r277985) +++ user/dchagin/lemul/sys/compat/linux/linux_misc.c Sat Jan 31 17:45:48 2015 (r277986) @@ -2004,7 +2004,6 @@ linux_sched_rr_get_interval(struct threa struct thread * linux_tdfind(struct thread *td, lwpid_t tid, pid_t pid) { - struct linux_pemuldata *pem; struct linux_emuldata *em; struct thread *tdt; struct proc *p; @@ -2020,9 +2019,8 @@ linux_tdfind(struct thread *td, lwpid_t * Initial thread where the tid equal to the pid. */ p = pfind(tid); - if (p) { - pem = pem_find(p); - if (pem == NULL) { + if (p != NULL) { + if (SV_PROC_ABI(p) != SV_ABI_LINUX) { /* * p is not a Linuxulator process. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501311745.t0VHjnEd000995>