This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 07/15] Hurd signals: fix uninitialized value.
- From: Jeremie Koenig <jk at jk dot fr dot eu dot org>
- To: libc-alpha at sourceware dot org
- Cc: Jeremie Koenig <jk at jk dot fr dot eu dot org>,bug-hurd at gnu dot org,Roland McGrath <roland at hack dot frob dot com>
- Date: Wed, 29 Jun 2011 18:30:19 +0200
- Subject: [PATCH 07/15] Hurd signals: fix uninitialized value.
- References: <1309365027-4774-1-git-send-email-jk@jk.fr.eu.org>
* hurd/hurdsig.c (post_signal): Don't call resume() with ACT uninitialized,
as it might result in the target thread being left suspended.
---
hurd/hurdsig.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 0ec0f27..74a01a6 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -558,8 +558,11 @@ post_signal (struct hurd_sigstate *ss,
if (signo == 0)
{
if (untraced)
- /* This is PTRACE_CONTINUE. */
- resume ();
+ {
+ /* This is PTRACE_CONTINUE. */
+ act = ignore;
+ resume ();
+ }
/* This call is just to check for pending signals. */
__spin_lock (&ss->lock);
--
1.7.5.3