diff options
author | julian <julian@FreeBSD.org> | 1998-12-19 02:55:34 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1998-12-19 02:55:34 +0000 |
commit | 61490236bcee0615867517e76eb92c1b20075f82 (patch) | |
tree | 9a109f9996daee77886aee1062aa97f90896dd47 /sys/kern/imgact_elf.c | |
parent | da7c7a2e129d402169d2fbc6d83f596d7d16d83a (diff) | |
download | FreeBSD-src-61490236bcee0615867517e76eb92c1b20075f82.zip FreeBSD-src-61490236bcee0615867517e76eb92c1b20075f82.tar.gz |
Reviewed by: Luoqi Chen, Jordan Hubbard
Submitted by: "Richard Seaman, Jr." <lists@tar.com>
Obtained from: linux :-)
Code to allow Linux Threads to run under FreeBSD.
By default not enabled
This code is dependent on the conditional
COMPAT_LINUX_THREADS (suggested by Garret)
This is not yet a 'real' option but will be within some number of hours.
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r-- | sys/kern/imgact_elf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 25b7031..a0a2284 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: imgact_elf.c,v 1.42 1998/10/25 17:44:50 phk Exp $ + * $Id: imgact_elf.c,v 1.43 1998/12/04 22:54:51 archie Exp $ */ #include "opt_rlimit.h" @@ -854,7 +854,11 @@ elf_corehdr(p, vp, cred, numsegs, hdr, hdrsize) status.pr_gregsetsz = sizeof(gregset_t); status.pr_fpregsetsz = sizeof(fpregset_t); status.pr_osreldate = osreldate; +#ifndef COMPAT_LINUX_THREADS status.pr_cursig = p->p_sigacts->ps_sig; +#else + status.pr_cursig = p->p_sig; +#endif /* COMPAT_LINUX_THREADS */ status.pr_pid = p->p_pid; fill_regs(p, &status.pr_reg); |