From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8468 invoked by alias); 25 May 2006 13:06:16 -0000 Received: (qmail 8456 invoked by uid 22791); 25 May 2006 13:06:15 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 25 May 2006 13:06:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FjFXR-0007oU-Se; Thu, 25 May 2006 09:06:05 -0400 Date: Thu, 25 May 2006 19:37:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: Wu Zhou , gdb@sourceware.org Subject: Re: expected behavior when a signal is sent to the ptraced child Message-ID: <20060525130605.GA29966@nevyn.them.org> Mail-Followup-To: Andreas Schwab , Wu Zhou , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00370.txt.bz2 On Thu, May 25, 2006 at 11:06:43AM +0200, Andreas Schwab wrote: > Wu Zhou writes: > > > What I expect is the parent will at least output: > > > > stopped by signal 5 > > > > What is the problem here? Did I make something wrong? > > You need to use waitpid/wait4 and add WUNTRACED to the options parameter. > Without that you'll never receive notification of stopped processes. WUNTRACED shouldn't be necessary in this case because the child is actually ptraced. -- Daniel Jacobowitz CodeSourcery