svn commit: r277986 - user/dchagin/lemul/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sat Jan 31 17:45:49 UTC 2015
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.
*/
More information about the svn-src-user
mailing list