This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Linux: Use kill_lwp/tkill instead of kill when killing a, process


On 07/15/2014 08:27 PM, Jan Kratochvil wrote:

> I do not.
> Just it is the general GDB rule of "If it ain't broken, don't fix it".
> There are various old and patched kernels out there.

Well, it's broken, because it's not using tgkill, which we should be
using everywhere instead of tkill/kill.  Leaving the place that sends
SIGKILL using plain "kill" is kind of self-defeating.

If there are NPTL kernels that require "kill" for some odd reason,
then we should add some kind of detection for that, so to not punish
newer kernels.  LinuxThreads will always fallback to "kill".

On 07/15/2014 09:52 PM, Stan Shebs wrote:
> But going by context, maybe kill_lwp was just overlooked at
> the time, and then propagated verbatim thereafter.

Yes, that's my theory.

I'm pushing this in then.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]