diff options
author | Pedro Alves <palves@redhat.com> | 2014-07-16 20:06:55 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-07-16 20:06:55 +0100 |
commit | 69ff6be55c0e6181223f2b9c93d90ffc9f7fb0f5 (patch) | |
tree | d58a3956816b7d81fac74350ab5896804cd6dc11 /gdb/gdbserver/linux-low.c | |
parent | 1b5d0ab34c53d6e896d2c0958b1176e324bb7878 (diff) | |
download | gdb-69ff6be55c0e6181223f2b9c93d90ffc9f7fb0f5.zip gdb-69ff6be55c0e6181223f2b9c93d90ffc9f7fb0f5.tar.gz gdb-69ff6be55c0e6181223f2b9c93d90ffc9f7fb0f5.tar.bz2 |
Linux: Use kill_lwp/tkill instead of kill when killing a process
Since we use tkill everywhere, using kill to try to kill each lwp
individually looks suspiciously odd. We should really be using tgkill
everywhere, but at least while we don't get there this makes us
consistent.
gdb/gdbserver/
2014-07-16 Pedro Alves <palves@redhat.com>
* linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
gdb/
2014-07-16 Pedro Alves <palves@redhat.com>
* linux-nat.c (kill_callback): Use kill_lwp, not kill.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 0f4dbe2..521d9a2 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -895,7 +895,7 @@ linux_kill_one_lwp (struct lwp_info *lwp) everywhere. */ errno = 0; - kill (pid, SIGKILL); + kill_lwp (pid, SIGKILL); if (debug_threads) { int save_errno = errno; |