[patch] sigfix-2.5.39-A1

From: Ingo Molnar (mingo@elte.hu)
Date: Sun Sep 29 2002 - 04:41:45 EST


the attached patch fixes the bug reported by David Mosberger,
force_sig_info() dropped the siginfo structure, which broke things like
SIGFPU or alignment-error exceptions. This bug was introduced by the
threading signal changes. (The patch also fixes signal declaration
whitespaces in sched.h.)

        Ingo

--- linux/include/linux/sched.h.orig Sun Sep 29 11:25:06 2002
+++ linux/include/linux/sched.h Sun Sep 29 11:27:58 2002
@@ -226,15 +226,15 @@
         struct k_sigaction action[_NSIG];
         spinlock_t siglock;
 
- /* current thread group signal load-balancing target: */
- task_t *curr_target;
+ /* current thread group signal load-balancing target: */
+ task_t *curr_target;
 
+ /* shared signal handling: */
         struct sigpending shared_pending;
 
         /* thread group exit support */
         int group_exit;
         int group_exit_code;
-
         struct task_struct *group_exit_task;
 };
 
--- linux/kernel/signal.c.orig Sun Sep 29 11:28:25 2002
+++ linux/kernel/signal.c Sun Sep 29 11:31:53 2002
@@ -781,7 +781,7 @@
         recalc_sigpending_tsk(t);
         spin_unlock_irqrestore(&t->sigmask_lock, flags);
 
- return send_sig_info(sig, (void *)1, t);
+ return send_sig_info(sig, info, t);
 }
 
 static int

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:39 EST