Page MenuHomeFreeBSD

D30899.id91360.diff
No OneTemporary

D30899.id91360.diff

Index: sys/kern/kern_exec.c
===================================================================
--- sys/kern/kern_exec.c
+++ sys/kern/kern_exec.c
@@ -1060,8 +1060,6 @@
sigfastblock_clear(td);
umtx_exec(p);
itimers_exec(p);
- if (sv->sv_onexec != NULL)
- sv->sv_onexec(p, imgp);
EVENTHANDLER_DIRECT_INVOKE(process_exec, p, imgp);
@@ -1146,6 +1144,9 @@
return (vm_mmap_to_errno(error));
}
+ if (sv->sv_onexec != NULL)
+ sv->sv_onexec(p, imgp);
+
/*
* vm_ssize and vm_maxsaddr are somewhat antiquated concepts, but they
* are still used to enforce the stack rlimit on the process stack.

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 12, 11:18 AM (14 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26894937
Default Alt Text
D30899.id91360.diff (613 B)

Event Timeline