From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17657 invoked by alias); 22 Sep 2007 03:58:48 -0000 Received: (qmail 17649 invoked by uid 22791); 22 Sep 2007 03:58:48 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 22 Sep 2007 03:58:45 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D7735982AD; Sat, 22 Sep 2007 03:58:43 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id BC87C98100; Sat, 22 Sep 2007 03:58:43 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IYw8g-0002i3-Gd; Fri, 21 Sep 2007 23:58:42 -0400 Date: Sat, 22 Sep 2007 03:58:00 -0000 From: Daniel Jacobowitz To: Mike Frysinger , Mike Frysinger Cc: gdb-patches@sourceware.org Subject: Re: [patch] early abort if child spawning failed Message-ID: <20070922035842.GA10326@caradoc.them.org> Mail-Followup-To: Mike Frysinger , Mike Frysinger , gdb-patches@sourceware.org References: <200709212231.11507.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200709212231.11507.vapier@gentoo.org> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00289.txt.bz2 On Fri, Sep 21, 2007 at 10:31:11PM -0400, Mike Frysinger wrote: > if you use gdbserver to listen on a port and the specified program fails to > launch properly, the server process will continue on to the accept() call and > sit there forever ... you cant control+c the process as the signals are taken > over which means you have to connect with gdb to force the server to re-check > itself and then abort ... all in all, a pita for a simple typo. > > the attached patch checks the status field immediately after launch rather > than falling down into the main loop and waiting for the remote debugger to > connect for the status to get properly checked. > -mike Did you port this from an earlier version? It shouldn't be necessary any more - Michael fixed this 2007-07-27. -- Daniel Jacobowitz CodeSourcery