From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4038 invoked by alias); 1 Sep 2010 02:07:37 -0000 Received: (qmail 4025 invoked by uid 22791); 1 Sep 2010 02:07:36 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Sep 2010 02:07:32 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 207262BABBF; Tue, 31 Aug 2010 22:07:31 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id p32h+kzgsFus; Tue, 31 Aug 2010 22:07:31 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id E3C3D2BABAE; Tue, 31 Aug 2010 22:07:30 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 023E3F599F; Wed, 1 Sep 2010 04:07:22 +0200 (CEST) Date: Wed, 01 Sep 2010 02:07:00 -0000 From: Joel Brobecker To: Daniel Jacobowitz Cc: gdb-patches@sourceware.org Subject: Re: RFC: Wait for exit after "target remote |" Message-ID: <20100901020722.GV2986@adacore.com> References: <20100830191215.GH28036@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100830191215.GH28036@caradoc.them.org> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-09/txt/msg00004.txt.bz2 > 2010-08-30 Daniel Jacobowitz > > * config.in, configure: Regenerated. > * configure.ac: Check for waitpid. > * ser-pipe.c (pipe_close): Wait for the program to exit. FWIW, I think that this is an improvement over the previous situation. Leaving processes behind can be disastrous, whereas I also think that the chances of a process not dying after a SIGTERM are slim (likely unintentional). -- Joel