diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-25 20:44:46 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-25 20:44:46 +0000 |
commit | 50f49b724028193c2880a086fdbbe1a7e5ab3e80 (patch) | |
tree | b5d5457fce8138b09a5295e94fb2db013079d740 /sys/amd64/linux32 | |
parent | fe042f46ba0cc76c4bfbc6d0e5c2fb406ec39088 (diff) | |
download | FreeBSD-src-50f49b724028193c2880a086fdbbe1a7e5ab3e80.zip FreeBSD-src-50f49b724028193c2880a086fdbbe1a7e5ab3e80.tar.gz |
When I merged the lemul branch I missied kib@'s r282708 commit.
This is not the final fix as I need properly cleanup thread resources
before other threads suicide.
Tested by: Ruslan Makhmatkhanov
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r-- | sys/amd64/linux32/linux32_machdep.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index 0bcc4d3..f9c11ca 100644 --- a/sys/amd64/linux32/linux32_machdep.c +++ b/sys/amd64/linux32/linux32_machdep.c @@ -126,7 +126,6 @@ int linux_execve(struct thread *td, struct linux_execve_args *args) { struct image_args eargs; - struct vmspace *oldvmspace; char *path; int error; @@ -137,19 +136,11 @@ linux_execve(struct thread *td, struct linux_execve_args *args) printf(ARGS(execve, "%s"), path); #endif - error = pre_execve(td, &oldvmspace); - if (error != 0) { - free(path, M_TEMP); - return (error); - } error = freebsd32_exec_copyin_args(&eargs, path, UIO_SYSSPACE, args->argp, args->envp); free(path, M_TEMP); if (error == 0) - error = kern_execve(td, &eargs, NULL); - if (error == 0) error = linux_common_execve(td, &eargs); - post_execve(td, error, oldvmspace); return (error); } |