Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760864Ab2EITgP (ORCPT ); Wed, 9 May 2012 15:36:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753319Ab2EITgN (ORCPT ); Wed, 9 May 2012 15:36:13 -0400 Message-ID: <4FAAC706.6000808@redhat.com> Date: Wed, 09 May 2012 20:35:34 +0100 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Mike Frysinger CC: Oleg Nesterov , "Michael Kerrisk (man-pages)" , pacman@kosh.dhis.org, linux-man , lkml , Denys Vlasenko , Tejun Heo , Jan Kratochvil Subject: Re: ptrace.2: PTRACE_KILL needs a stopped process too References: <20091216004533.22261.qmail@kosh.dhis.org> <20120422200459.GA7519@redhat.com> <201205091109.35637.vapier@gentoo.org> In-Reply-To: <201205091109.35637.vapier@gentoo.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 622 Lines: 17 On 05/09/2012 04:09 PM, Mike Frysinger wrote: > probably not that big of a deal, but the reason i like using > ptrace(PTRACE_KILL) over a raw kill() is that you are less likely to kill the > wrong process by accident. maybe not that big of a deal in practice though. And you can do tgkill instead. It was specifically invented to handle the reuse case. -- Pedro Alves -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/