Pass the current LWP to sigexit() instead of the current process. Remove
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 21 Apr 2008 15:47:58 +0000 (15:47 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 21 Apr 2008 15:47:58 +0000 (15:47 +0000)
commitb276424cf194bde194d46c3828a0ffd526372909
treebc99da2083dbcae9c0ef628b85270b44bd4c3da5
parentc31493615a2def55ff9911ac8a7bb06f9ef508a0
Pass the current LWP to sigexit() instead of the current process.  Remove
the left-over hack in sigexit() that was using the first LWP instead of
the one that actually caused the core dump.

This way a GDB of the core will properly observe the thread that actually
caused the core-dump.
sys/emulation/linux/i386/linux_sysvec.c
sys/kern/kern_sig.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc64/amd64/cpu_regs.c
sys/platform/vkernel/i386/cpu_regs.c
sys/sys/signalvar.h