From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756775AbXFGKOr (ORCPT ); Thu, 7 Jun 2007 06:14:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752381AbXFGKOk (ORCPT ); Thu, 7 Jun 2007 06:14:40 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:59135 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbXFGKOj (ORCPT ); Thu, 7 Jun 2007 06:14:39 -0400 Date: Thu, 07 Jun 2007 19:15:04 +0900 Message-ID: <87tztk9il3.wl%takeuchi_satoru@jp.fujitsu.com> From: Satoru Takeuchi To: Roland McGrath Cc: Satoru Takeuchi , Linux Kernel , Linus Torvalds , Andrew Morton , Oleg Nesterov Subject: Re: [BUG] 2.6.22-rc4: wait4() waiting for SIGSTOP may not return if the target process is ptraced In-Reply-To: <20070607095432.559744D0597@magilla.localdomain> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/21.4 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, At Thu, 7 Jun 2007 02:54:32 -0700 (PDT), Roland McGrath wrote: > > The bug is in strace (and is being fixed). It needs to use tgkill instead > of kill to send that SIGSTOP to the right thread only. You mean kill() to specifig thread is fundamentally wrong? If so, current kill() is wrong because it can receive pid of non main thread. Thanks, Satoru