Re: [PATCH 2.5.3] Changes to signal to better support thread groups

From: Linus Torvalds (torvalds@transmeta.com)
Date: Tue Feb 05 2002 - 20:33:31 EST


Oh, btw - another thing:
 when you re-send with a non-broken mailer, could you please also change
all the duplication of the

+ /*
+ * If this task is in a thread group, make sure
+ * this signal kills all tasks in the group.
+ */
+ if (info.si_code != SI_TKILL) {
+ struct task_struct *task;
+
+ for_each_thread(task) {
+ force_sig_info(signr, &info, task);
+ }
+ }
+
                                do_exit(exit_code);

to use some common routine instead of being duplicated for each
architecture. It should be easy enough to do all of this in a

        do_signal_exit(signr, &info, exit_code);

and not have the same logic duplicated N times.

                Linus

-
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 : Thu Feb 07 2002 - 21:00:46 EST