Page MenuHomeFreeBSD

D30899.1783963939.diff
No OneTemporary

Size
533 B
Referenced Files
None
Subscribers
None

D30899.1783963939.diff

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

Mime Type
text/plain
Expires
Mon, Jul 13, 5:32 PM (5 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29115152
Default Alt Text
D30899.1783963939.diff (533 B)

Event Timeline