This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] ser-pipe.c (pipe_open): Ignore SIGINTs in child.
On Tue, Apr 27, 2010 at 10:43 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Doug" == Doug Evans <dje@google.com> 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. ?That 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?]