Page MenuHomeFreeBSD

D30899.diff
No OneTemporary

D30899.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
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)

Event Timeline