Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 5 Feb 2002 20:35:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 5 Feb 2002 20:35:45 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:45583 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 5 Feb 2002 20:35:33 -0500 Date: Tue, 5 Feb 2002 17:33:31 -0800 (PST) From: Linus Torvalds To: Dave McCracken cc: Dave Jones , Linux Kernel , Alan Cox Subject: Re: [PATCH 2.5.3] Changes to signal to better support thread groups In-Reply-To: <94810000.1012597690@baldur> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/