From 413cf3bbe1fdeee6bf155b6d7513303474ce6a7d Mon Sep 17 00:00:00 2001 From: David Xu Date: Sat, 12 Nov 2005 04:22:16 +0000 Subject: [PATCH] Make sure only remove one signal by debugger. --- sys/kern/kern_sig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 91712a4b40d9..178493c213d4 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2503,12 +2503,13 @@ issignal(td) SIGADDSET(td->td_sigmask, sig); if (sig != newsig) { + ksiginfo_t ksi; /* * clear old signal. * XXX shrug off debugger, it causes siginfo to * be thrown away. */ - sigqueue_delete(&td->td_sigqueue, sig); + sigqueue_get(&td->td_sigqueue, sig, &ksi); /* * If parent wants us to take the signal,