From owner-cvs-src@FreeBSD.ORG Thu May 15 18:34:24 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6149B37B401; Thu, 15 May 2003 18:34:24 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14A0443FBD; Thu, 15 May 2003 18:34:24 -0700 (PDT) (envelope-from obrien@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4G1YN0U091438; Thu, 15 May 2003 18:34:23 -0700 (PDT) (envelope-from obrien@repoman.freebsd.org) Received: (from obrien@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4G1YNhv091437; Thu, 15 May 2003 18:34:23 -0700 (PDT) Message-Id: <200305160134.h4G1YNhv091437@repoman.freebsd.org> From: "David E. O'Brien" Date: Thu, 15 May 2003 18:34:23 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_sig.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2003 01:34:24 -0000 obrien 2003/05/15 18:34:23 PDT FreeBSD src repository Modified files: sys/kern kern_sig.c Log: Fix long standing bug that prevents the PT_CONTINUE, PT_KILL and PT_DETACH ptrace(2) requests from functioning as advertised in the manual page. As described in kern/35175, the PT_DETACH request will, under certain circumstances, pass an unwanted signal on to the traced process upan detaching from it. The PT_CONTINUE request will sometimes fail if you make it pass a signal that has "properties" that differ from the properties of the signal that origionally caused the traced process to be stopped. Since PT_KILL is nothing than PT_CONTINUE with SIGKILL, it is broken too. In the PT_KILL case, this leads to an unkillable process. PR: 44011 Submitted by: Mark Kettenis Approved by: re(jhb) Revision Changes Path 1.239 +10 -9 src/sys/kern/kern_sig.c