From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1471 invoked by alias); 27 Apr 2010 17:57:01 -0000 Received: (qmail 1454 invoked by uid 22791); 27 Apr 2010 17:57:00 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SARE_MSGID_LONG45,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Apr 2010 17:56:56 +0000 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id o3RHurZf023458 for ; Tue, 27 Apr 2010 10:56:53 -0700 Received: from pvg11 (pvg11.prod.google.com [10.241.210.139]) by kpbe12.cbf.corp.google.com with ESMTP id o3RHuqxO026900 for ; Tue, 27 Apr 2010 10:56:52 -0700 Received: by pvg11 with SMTP id 11so368783pvg.13 for ; Tue, 27 Apr 2010 10:56:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.187.3 with SMTP id o3mr418275rvp.224.1272390961181; Tue, 27 Apr 2010 10:56:01 -0700 (PDT) Received: by 10.141.91.13 with HTTP; Tue, 27 Apr 2010 10:56:01 -0700 (PDT) In-Reply-To: References: <20100427035220.0C02F84C2B@ruffy.mtv.corp.google.com> Date: Tue, 27 Apr 2010 17:57:00 -0000 Message-ID: Subject: Re: [patch] ser-pipe.c (pipe_open): Ignore SIGINTs in child. From: Doug Evans To: tromey@redhat.com Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2010-04/txt/msg00916.txt.bz2 On Tue, Apr 27, 2010 at 10:43 AM, Tom Tromey wrote: >>>>>> "Doug" =3D=3D Doug Evans writes: > > Doug> I was debugging "tar rem | ..." today and found that typing ^c > Doug> killed the child of the pipe. > > I think it is preferable to call setsid, so that the child is dissociated > from the controlling terminal. =A0That way C-c won't send it a SIGINT. #ifdef HAVE_SETSID sounds good. [create_tty_session doesn't have any code to handle, e.g., win32, so punt to SIG_IGN #ifndef HAVE_SETSID?]