Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102638459
D30899.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
533 B
Referenced Files
None
Subscribers
None
D30899.diff
View Options
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1072,8 +1072,6 @@
if (p->p_sysent->sv_onexec_old != NULL)
p->p_sysent->sv_onexec_old(td);
itimers_exec(p);
- if (sv->sv_onexec != NULL)
- sv->sv_onexec(p, imgp);
EVENTHANDLER_DIRECT_INVOKE(process_exec, p, imgp);
@@ -1165,6 +1163,8 @@
vmspace->vm_ssize = sgrowsiz >> PAGE_SHIFT;
vmspace->vm_maxsaddr = (char *)stack_addr;
+ if (sv->sv_onexec != NULL)
+ sv->sv_onexec(p, imgp);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 4:31 AM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14653218
Default Alt Text
D30899.diff (533 B)
Attached To
Mode
D30899: Call sv_onexec handler after the process VA is created.
Attached
Detach File
Event Timeline
Log In to Comment