From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120065 invoked by alias); 9 Sep 2015 23:28:02 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 120034 invoked by uid 48); 9 Sep 2015 23:28:02 -0000 From: "jmgao at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/18945] New: gdbserver cannot be interrupted on linux when pgid doesn't match pid Date: Wed, 09 Sep 2015 23:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.10 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jmgao at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q3/txt/msg00272.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18945 Bug ID: 18945 Summary: gdbserver cannot be interrupted on linux when pgid doesn't match pid Product: gdb Version: 7.10 Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: jmgao at google dot com Target Milestone: --- Created attachment 8595 --> https://sourceware.org/bugzilla/attachment.cgi?id=8595&action=edit patch In gdbserver/linux-low.c, linux_request_interrupt uses kill(-pid, SIGINT) to interrupt a process, but this fails when the attached process is a member of another process group. Is there any reason that sending the signal to the entire process group is desired, or can we get away with changing it to kill just the single process? Trivial patch attached -- You are receiving this mail because: You are on the CC list for the bug.