From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18562 invoked by alias); 6 Oct 2006 03:24:25 -0000 Received: (qmail 18550 invoked by uid 22791); 6 Oct 2006 03:24:25 -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; Fri, 06 Oct 2006 03:24:22 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GVgJw-0005u0-FM; Thu, 05 Oct 2006 23:24:20 -0400 Date: Fri, 06 Oct 2006 03:24:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: Merge of nickrob-async-20060513 to mainline? Message-ID: <20061006032420.GA22658@nevyn.them.org> Mail-Followup-To: Nick Roberts , gdb@sources.redhat.com References: <20060830023335.GA6377@nevyn.them.org> <17653.930.196634.143646@kahikatea.snap.net.nz> <20060830040113.GA8257@nevyn.them.org> <17654.994.815362.897653@kahikatea.snap.net.nz> <20060830214257.GA5397@nevyn.them.org> <17688.59135.24869.397517@kahikatea.snap.net.nz> <20060926123757.GA9879@nevyn.them.org> <17701.43098.583849.540224@kahikatea.snap.net.nz> <20061006012633.GA20001@nevyn.them.org> <17701.47901.123920.954707@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17701.47901.123920.954707@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.13 (2006-08-11) 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-10/txt/msg00031.txt.bz2 On Fri, Oct 06, 2006 at 03:10:37PM +1300, Nick Roberts wrote: > Yes I think so. I don't quite follow the explanation of pselect in the manpage > but I think you're saying that the signal handler for SIGCHLD will run even > when GDB is already in select, and can get GDB's attention by writing to a > pipe with a file descriptor that select is watching. Exactly. Actually, getting the signal may also knock GDB out of the select syscall; that depends on whether the "SA_RESTART" flag is used. But you want to rely on the pipe, as there are fewer corner cases. -- Daniel Jacobowitz CodeSourcery