diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-05-17 00:41:49 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-05-17 00:41:49 +0000 |
| commit | 079269c07ef04d9f623ce20f9c21b72684387da8 (patch) | |
| tree | 9c5400a7085b3595aa3e3a6bff81fbf38ba5c740 | |
| parent | 650898ba6e88e69be45495fe2d9902849759b5c9 (diff) | |
Notes
| -rw-r--r-- | sys/kern/sys_process.c | 2 | ||||
| -rw-r--r-- | sys/sys/ptrace.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 950f9b9247a5..b1a30492191d 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -935,6 +935,8 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data) } else { pl->pl_flags = 0; } + pl->pl_sigmask = td2->td_sigmask; + pl->pl_siglist = td2->td_siglist; break; case PT_GETNUMLWPS: diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h index 93b1a7d6d0fc..8fd52cb4451e 100644 --- a/sys/sys/ptrace.h +++ b/sys/sys/ptrace.h @@ -33,6 +33,8 @@ #ifndef _SYS_PTRACE_H_ #define _SYS_PTRACE_H_ +#include <sys/_sigset.h> + #define PT_TRACE_ME 0 /* child declares it's being traced */ #define PT_READ_I 1 /* read word in child's I space */ #define PT_READ_D 2 /* read word in child's D space */ @@ -92,6 +94,8 @@ struct ptrace_lwpinfo { int pl_flags; /* LWP flags. */ #define PL_FLAG_SA 0x01 /* M:N thread */ #define PL_FLAG_BOUND 0x02 /* M:N bound thread */ + sigset_t pl_sigmask; /* LWP signal mask */ + sigset_t pl_siglist; /* LWP pending signal */ }; #ifdef _KERNEL |
