Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105776582
D1462.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
929 B
Referenced Files
None
Subscribers
None
D1462.diff
View Options
Index: head/sys/compat/linux/linux_emul.c
===================================================================
--- head/sys/compat/linux/linux_emul.c
+++ head/sys/compat/linux/linux_emul.c
@@ -89,8 +89,6 @@
if (newtd != NULL) {
/* non-exec call */
em = malloc(sizeof(*em), M_TEMP, M_WAITOK | M_ZERO);
- em->pdeath_signal = 0;
- em->robust_futexes = NULL;
if (flags & LINUX_CLONE_THREAD) {
LINUX_CTR1(proc_init, "thread newtd(%d)",
newtd->td_tid);
@@ -117,6 +115,11 @@
KASSERT(em != NULL, ("proc_init: emuldata not found in exec case.\n"));
em->em_tid = td->td_proc->p_pid;
+ em->flags = 0;
+ em->pdeath_signal = 0;
+ em->robust_futexes = NULL;
+ em->child_clear_tid = NULL;
+ em->child_set_tid = NULL;
/* epoll should be destroyed in a case of exec. */
pem = pem_find(td->td_proc);
@@ -129,8 +132,6 @@
}
}
- em->child_clear_tid = NULL;
- em->child_set_tid = NULL;
}
void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 1:06 PM (18 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15541628
Default Alt Text
D1462.diff (929 B)
Attached To
Mode
D1462: Linuxulator. Small optimization.
Attached
Detach File
Event Timeline
Log In to Comment