Don't forget to invoke pre_execve() and post_execve().
CloudABI's proc_exec() was implemented before r282708 introduced pre_execve() and post_execve(). Sync up by adding these missing calls.
This commit is contained in:
parent
084748985d
commit
edcf7fbf59
@ -46,14 +46,19 @@ cloudabi_sys_proc_exec(struct thread *td,
|
||||
struct cloudabi_sys_proc_exec_args *uap)
|
||||
{
|
||||
struct image_args args;
|
||||
struct vmspace *oldvmspace;
|
||||
int error;
|
||||
|
||||
error = pre_execve(td, &oldvmspace);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
error = exec_copyin_data_fds(td, &args, uap->data, uap->datalen,
|
||||
uap->fds, uap->fdslen);
|
||||
if (error == 0) {
|
||||
args.fd = uap->fd;
|
||||
error = kern_execve(td, &args, NULL);
|
||||
}
|
||||
post_execve(td, error, oldvmspace);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user